ok so keep in mind I'm a simpleton so please use laymen terms.
I have one dll that will set the (float)variables to their values and another dll will be reading them. And I would like to use the following method:
#pragma data_seg (".myseg")
float one_ = 0.1f;
float two_ = 0.1f;
#pragma data_seg()
Both dlls will never restart so the var's will not go back to 0.1f that value was just used to initialize them. the trouble comes when I try to add the Link info:
// Tell the linker that the section
// .MYSEG is readable, writable and is shared.
#pragma comment(linker, "/SECTION:.MYSEC,RWS")
I dont understand what the "section" part is. Keep in mind I am a Qbasic programmer trying to learn C++ . In visual c++ 2005 there is a linker section in the properties pages - do I have to add something here?
any helpers out there?
Related posts:

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment