class members have no valid adress!!please help!

  • Thread starter Thread starter anreas
  • Start date Start date
A

anreas

hy, i have written an exe and a dll. the exe uses a class
in the dll.
in this dll- class i have some CString members. now, when
i debug i see the
following: in the constructor, everything is fine, all
strings got initialized and have valid adresses. now in a
subsequent functioncall, every
CString Member has the adress 0x000000 except the one who
was first declared in the class. i have no idea, what the
problem could be!
has it something todo with the dll?

please help me!!

thanx
 
I THINK that you cannot place anytnig but functions in your DLL, please
correct me if I'm wrong.
 
anreas said:
hy, i have written an exe and a dll. the exe uses a class
in the dll.
in this dll- class i have some CString members. now, when
i debug i see the
following: in the constructor, everything is fine, all
strings got initialized and have valid adresses. now in a
subsequent functioncall, every
CString Member has the adress 0x000000 except the one who
was first declared in the class. i have no idea, what the
problem could be!
has it something todo with the dll?

You've most likely made a call to a CString member function from a NULL
pointer value. Also make sure that your DLL and EXE are both linked with
the DLL version of the CRT and MFC (or ATL whichever it is you're using).

-cd
 
Back
Top