std::vector passed to DLL class never arrives??? 
Author Message
 std::vector passed to DLL class never arrives???

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



Tue, 23 Sep 2003 19:16:04 GMT  
 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



Tue, 23 Sep 2003 23:31:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. export classes using std namespace (ex std::vector) in a DLL

2. passing std::vector to a DLL by reference

3. using std::string and vector in DLL exported class

4. std::vector holding different class types sharing a same base class

5. Passing std::set and std::map objects between 2 dlls

6. std::vector class

7. VC++ 5.0 std::vector error: pointer to nested class

8. std::vector<user-defined class>

9. bug: VS7.0 (6.0) C++ std::auto_ptr conflict with std::vector

10. Warnings for std::vector<std::string>

11. typedef std::vector<std::string> Vector_String

12. std::list, std::vector, push_back() and associated ::iterator validity

 

 
Powered by phpBB® Forum Software