Click here to Skip to main content
15,896,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 9:55
Peter Weyzen3-Oct-03 9:55 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:06
sjcomp3-Oct-03 10:06 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 10:27
Peter Weyzen3-Oct-03 10:27 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:41
sjcomp3-Oct-03 10:41 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 11:24
Peter Weyzen3-Oct-03 11:24 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 11:46
sjcomp3-Oct-03 11:46 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 12:10
Peter Weyzen3-Oct-03 12:10 
AnswerRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem3-Oct-03 19:18
Gopalakrishna Palem3-Oct-03 19:18 
sjcomp wrote:
It looks like main program has its own version and each dll has its own version, while I want it to be shared.

Dear sir,

Have you declared the global object as "extern" ?? In that way all the modules would share the same variable Otherwise each would create its own version.
For example,
Suppose In sdk.cpp we have the global object

//sdk.cpp
CGlobalClass gObject; //This is the actual instance

Now in Main.cpp and all plugins declare like..,

//Main.cpp
extern CGlobalClass gObject;

Do the same in all cpp files where the Global object appears.

Thanking you,
Yours,
P.GopalaKrishna.
GeneralRe: SDK creation (export of variables)? Pin
sjcomp4-Oct-03 7:01
sjcomp4-Oct-03 7:01 
GeneralRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem4-Oct-03 14:39
Gopalakrishna Palem4-Oct-03 14:39 
AnswerRe: SDK creation (export of variables)? Pin
sjcomp6-Oct-03 4:19
sjcomp6-Oct-03 4:19 
GeneralPSAPI and Winsock Pin
Peter Weyzen3-Oct-03 9:24
Peter Weyzen3-Oct-03 9:24 
GeneralCFormView Issues! Pin
Steven M Hunt3-Oct-03 8:59
Steven M Hunt3-Oct-03 8:59 
GeneralRe: CFormView Issues! Pin
Maximilien3-Oct-03 9:09
Maximilien3-Oct-03 9:09 
GeneralRe: CFormView Issues! Pin
vcplusplus3-Oct-03 9:23
vcplusplus3-Oct-03 9:23 
GeneralFile Open Pin
Anonymous3-Oct-03 8:24
Anonymous3-Oct-03 8:24 
GeneralRe: File Open Pin
Steven M Hunt3-Oct-03 8:54
Steven M Hunt3-Oct-03 8:54 
GeneralRe: File Open Pin
pma3-Oct-03 8:54
pma3-Oct-03 8:54 
GeneralRe: File Open Pin
Anonymous3-Oct-03 9:07
Anonymous3-Oct-03 9:07 
GeneralRe: File Open Pin
Peter Weyzen3-Oct-03 9:35
Peter Weyzen3-Oct-03 9:35 
GeneralRe: File Open Pin
peterchen3-Oct-03 20:33
peterchen3-Oct-03 20:33 
GeneralRe: File Open Pin
David Crow3-Oct-03 10:10
David Crow3-Oct-03 10:10 
GeneralSNMP response time Pin
pma3-Oct-03 8:12
pma3-Oct-03 8:12 
GeneralRe: SNMP response time Pin
Joe Woodbury3-Oct-03 11:05
professionalJoe Woodbury3-Oct-03 11:05 
GeneralRe: SNMP response time Pin
pma3-Oct-03 11:14
pma3-Oct-03 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.