Follow-on question, what about pointers? Could a pointer inside the MAIN be passed to a DLL and the reference remain faithful?
Has maybe been answered indirectly but:
Yes. A pointer value obtained in any process is valid anywhere within that process; but only in that process. However, you may use it in another process using the ReadProcessMemory() WinAPI function, https://learn.microsoft.com/en-us/wi...dprocessmemory
Also, an easy way to think about this "GLOBAL" thing is, the PB scope words LOCAL, STATIC, GLOBAL and THREADED* create variables with that scope only valid within the module being compiled. That is, those scope statements are used only at compile time.
* automatically GLOBAL in scope
Comment