Demetresz
September 6th, 1999, 08:20 AM
I have made a dll that will be used from different clients and I want my dll to export data that will be shared among clients.
I have declared in my .cpp file the data I want to export in the form of:
#pragma data_seg(".MYSEG")
long lVar1 = 0;
long lVar2 = 0;
#pragma data_seg()
and in my .def file
SECTIONS
.MYSEG READ WRITE SHARED
All that seems file and it works perfect.
But what if I want to share a CDataSource object or a CMap object? I can't seem to find the solution.
Thanks in advance to anyone who replays.
I have declared in my .cpp file the data I want to export in the form of:
#pragma data_seg(".MYSEG")
long lVar1 = 0;
long lVar2 = 0;
#pragma data_seg()
and in my .def file
SECTIONS
.MYSEG READ WRITE SHARED
All that seems file and it works perfect.
But what if I want to share a CDataSource object or a CMap object? I can't seem to find the solution.
Thanks in advance to anyone who replays.