Codeplug: Maybe you are also interested in this thread:
static variable vs. DLL
This is a discussion on global and static variable in a class delivered in a DLL within the C++ Programming forums, part of the General Programming Boards category; Codeplug: Maybe you are also interested in this thread: http://cboard.cprogramming.com/showthread.php?t=98673...
There was something wrong with your test case here. The main module didn't link to the exported "myStatic" - instead it got it's own copy. I can't comment as to why this particular test case showed two instances - all I know is when I run my own test cases it works as expected.c:\static_vs_dll_test\debug>app_part.exe
Address of static member from main app: 004111A9
Address of static member from DLL: 10018004