LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

share external variables between DLLs files

Hi,

I need to know if i can use the declaration "External int x" to share the variable x between many DLLs files or i need to use an other method

 

Thansk

0 Kudos
Message 1 of 2
(3,046 Views)

I recommend Get and Set functions. But if you really want variables, see here: MSDN.

 

For the Section use:     #pragma comment(linker, "/SECTION:.myseg,RW")

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 2 of 2
(2,975 Views)