|
-
Dec 24th, 2003, 02:34 PM
#1
Thread Starter
New Member
Global Variables In Libraries
I have a project in which a variable is defined in a static library as "extern SCREEN g_Screen;" (where SCREEN is "enum SCREEN {FULL,WINDOWED};"). The library is included in a dynamic library that uses it and, through inclusion of the dynamic library header, in the test application. For some reason when I set g_Screen in the application the library doesn't see the change (and vice versa).
Am I missing something? I read something somewhere about hooks but I wasn't too sure that it was what I needed. I very much need the library and application to be able to control/read the same instance of the variable without having to pass the variable's value as a parameter between the library and application.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|