
DLL with shared data/class not sharing...
Dave
Ok, read, re-read, & re-read again..
So.. even so I am getting the address of the class each time I need it
before ANY action, the fact is that private data in the class may not be in
the shared segment and therefore not avaliable?
So.. in that case .. is there any other method avaliable for me to create a
class in a global memory pool? Or any other suggestions? (I was keeping away
from com as the apps will need to be ported to CE in the near future & I
was trying to keep overheads to a minimum..) but I may have no option..
Many thanks dave
Regards
Mark
Quote:
> >Thanks for that but... I understand that the memory location wil probably
> >change hence the call to get the address of the dataclass before I do
> >anything with it..
> >I have changed the construction of the class to also initalize it
> >CData theData("");
> >when running from 2 apps, the *ptr returned is always the same value but
the
> >data returned from within the class is not..
> Mark,
> Have you checked Knowledge Base article Q100634? I think that the
> information mentioned in its Summary Note still applies in your
> situation.
> Dave
> --
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> My address is altered to discourage junk mail.
> Please post responses to the newsgroup thread,
> there's no need for follow-up email copies.