Basically, i have a dll that i hook into an old game. I want to apply some tutorial from a blog and it succeeded but the "Hello world" message displayed as this:
[login to view URL]
So i realized the blog writer was right when he said this :
Microsofts C++ library can be a bitch. If you compile on DEBUG, std::wstring will have an debug-allocator embedded, causing the structure to shift, the offsets to be wrong and your game to crash. Also, implementations and structure of STL-types might change over time. The game is build on VC80, aka. 2005. 13 years ago. The newer your library and compiler, the more likely is a broken code. Consider reconstructing std::wstring for your own use so you won’t run into problems using newer libraries.
So i need someone to help me with reconstructing std::wstring.