GLOBAL variables in multiple files ??
Hiho,
how do I use a variable ( for example hwnd ) in more than one .cpp files ??
I created a window in main.cpp and I need the window handle in some other cpp files. I declared it in global.h which I included in all my .cpp files. But then I recieve a linker error which says that the variables declared in global.h are declared twice or more.
What can I do to solve this ??
thx
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement