Could someone please tell me the equivialent of the MS Visual C++ code:
#pragma data_seg (".shared")
BOOL g_bBlah = FALSE;
#pragma data_seg ()
#pragma comment(linker,"/SECTION:.shared,RWS")
How would I do this in MASM, and where would I do it? eg before .data ??
Your help is much appreciated. :toothy
You could put it in the DEF file as in,
SECTIONS .bss SHARED ; .bss = .data?
or
SECTIONS .bss READ WRITE SHARED ; .bss = .data?
or you could add it as a linker switch something like,
/SECTION:.bss|S
Mind you I use RadASM, so I don't know if it would be different in another IDE.