I have a name mangling issue with a C++ static library that was created using VS 6.0. I'm trying to write a wrapper DLL using this static library, but i'm having trouble accessing the functions of this library due to name mangling. My compiler (VS 2005) shows this for a function i'm trying to use:
"?start_api@@YACH@Z",
and dumbin shows this for the reference to the function:
"?start_api@@YA_DH@Z"
As you can see my compiler says its returning signed char and looking for an int (CH). Where in dumpbin it says its returning a __int8 and looking for an int (_DH).
The static library is a 3rd party library that i don't have the source for and can't rewrite, so how do I get it working in my compiler?