开发者

VS2008 exe-VC6 dll interoperability

开发者 https://www.devze.com 2022-12-15 13:41 出处:网络
I heard somewhere that passing of wchar_t across VS2005 and VC6 is quite dangerous. I tried to delete memory which was allocated from VC6 dll from VS2008 exe, and it raised assertion. After referring

I heard somewhere that passing of wchar_t across VS2005 and VC6 is quite dangerous. I tried to delete memory which was allocated from VC6 dll from VS2008 exe, and it raised assertion. After referring Bad pointer or link issue when creating wstring from vc6 dll, i adde开发者_如何学编程d one func in VC6 dll which shall be used to delete memory. And it solved my issue.

But is there any difference between internal sturcture of whcar_t between VS2008 and VC6.. Please help..

Rgrds, Jinto


VC6 didn't have a wchar_t type, to start with. However, on both it's a 16 bits type, so that shouldn't cause major issues. It's likely unrelated to the problems you have with malloc() and free(), which work on raw, untyped memory.

0

精彩评论

暂无评论...
验证码 换一张
取 消