[Dev-C++] *.dll: shared Memory for multiple instances of a dll ?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Harald N. <no...@sb...> - 2004-12-12 02:59:36
|
Hello!
I thought I can define a shared memory in a dll with the following command
in the *.c file:
#pragma data_seg(".SHARDATA")
static HWND mainWindow = NULL;
static UINT message = 0;
#pragma data_seg()
#pragma comment(linker,"/SECTION:.SHARDATA,RWS")
but it has no effect :-(
in the linker options of the project stands following:
--no-export-all-symbols --add-stdcall-alias
what do I have to solve that problem?
THANKS for your help !!!!!
|