I'm trying to use string(STL) with dll's (VC++ 6.0). If I create a library
that has a class using string's and returning strings back to the caller
everythinf works fine, As soon as a try to create a dll, I get problems.
The compiler first says he needs an instantiation af basic_string<char>..
and so on, as soon as a create one according to the hints' (Q168958), he
complaint's there is already one. Okay this doesn't really matter.
I still can create the dll and use it. In release mode everythin seems to
work. As soon as a switch to debug mode I get problems:
User breakpoint called from code at ....,
Debug assertion failed ...CrtlsValidHeapPointer(pUserData)
HEAP[testdll.exe]: Invalid Address specified to RtlFreeHeap( 590000,
481990 )
One can go on with ignoring the stuff, but I hate doing this.
Is there a HOWTO for STL and DLL's, and are there examples around.