
std::vector passed to DLL class never arrives???
How do you use the static member in a DLL? Show some code. I mean, if the
DLL has the declaration of the class and its static member, but not the
definition of the static member, it should have failed to link in the first
place. If both DLL and EXE have the definition of the static member, they
will actually reference different instances of it which I'm sure is not what
you had in mind.
--
With best wishes,
Igor Tandetnik
Quote:
> I've been working on this for days...
> I have a class that I've loaded from a dll. The class performs processing
on
> data I send it. This works.
> I pass it classes and output some data based on the content of the classes
I
> send it. This works too.
> However when I send it a class with a static member that is a std::vector,
> the vector always appears in the dll as having an address of 0x0000000....
> but as soon as the dll call completes and control is returned to the exe I
> can see the address again (in the de{*filter*} I mean).
> Is this just something that can't happen?
> Many thanks..
> Chris