I got a DLL generated on VC6 and using wstring
, and I'm trying to use it in a VC9 project.
In this DLL there is a higher level class manipulating wstring
, called UtfString
.
I got everything imported correctly in my project, but when I call:
std::wstring test;
UtfString uTest(test);
it won't link, even if the function prototype is in the lib...
The other issuer is that when create a new UtfString, and debug my app, the new pointer is <Bad Ptr>
.
I suspect a conflict between VC6 wstring
and VC9 wstring
but I'm not sure. I want to avoid to modify the original Dll.
It would be great if someone could make things more clear for me, and explain me what is the real reason of the problem.
Thanks in advance for your answer, Boris