Is there anyway to use a C++ DLL (NOT C) with MASM? If I load this DLL up with a PE Dumper I get exports like this: ??1ResultSet@odbc@@UAE@XZ ??_C@_06INBL@second?$AA@ ?_getDriverInfo@ResultSet@odbc@@ABEPBVDriverInfo@2@XZ What is this?? How do I make this DLL work in MASM? Thanks, Devin.
Posted on 2001-04-25 18:11:00 by Devin
That ugly names are caused by C++ name mangling: it's necessary to function overloading implementation. So if you want to use C++ DLL, you must refer to those ugly names in your own program. No way to avoid it.
Posted on 2001-04-25 23:48:00 by Iczelion
Devin, Which DLL are you trying to use? Is it a standard MS one, or one of your own? umbongo
Posted on 2001-04-26 04:32:00 by umbongo
If it's one of your own DLLs, you should try adding extern "C" { // ... all function prototypes here ... } -- it will fix the problem by generating standard C-style function names. This probably will not work if you're overloading functions, though.
Posted on 2001-04-26 10:27:00 by f0dder