hello,
according documentation, it is specified that variable, defined as "external" inside one dll (general library) is visible to all dll-s inside same process. After testing, I can't get "global" variable in one dll to be accessed in another dll.
Example is as follows(2 general library dll-s)
library.1:
library.2:
looks like compiler doesn't "include" external symbols from library.1. Is there any special "convention" to define global(cross dll) variables?
Rgds, Frenk
according documentation, it is specified that variable, defined as "external" inside one dll (general library) is visible to all dll-s inside same process. After testing, I can't get "global" variable in one dll to be accessed in another dll.
Example is as follows(2 general library dll-s)
library.1:
Code:
external domain tcitem ext.item.1 | Global variable definition in first dll
function extern string fnc.1(){
return(ext.item.1)
}
Code:
#pragma used dll olibrary.1
function extern string fnc.2(){
return(ext.item.1) | "usage" of global variable from first dll, compiler generates an error "Error: "ext.item.1" not declared"
}
Rgds, Frenk