My code is built to multiple .dll files, and I have a template class that has a static member variable.
I want the same instance of this static member variable to be
You already try this usage :
#pragma data_seg(".JOE")
HWND hWndServer = NULL;
HHOOK hook = NULL;
#pragma data_seg()
#pragma comment(linker, "/section:.JOE,rws")
Note that variable need beam initialized.
More info : http://msdn.microsoft.com/en-us/library/ms997537.aspx http://www.flounder.com/hooks.htm
Good luck.