my problem is, that I have to compile a few programs with VS2005 and other programs with Watcom (OpenWatcom to be exact). A lot of DLLs, most of them with stdcall calling convention.
Watcom is exporting all functions twice, as the dependency walker shows:
Code:
Function EntryPoint
_grafixLibFileInfo@4 0x000010A7
grafixLibFileInfo 0x000010A7
Visual Studio is exporting the functions only once
Code:
Function EntryPoint
_grafixLibFileInfo@4 0x00011267
What about exporting functions once, but without C++ name mangling, grafixLibFileInfo and not _grafixLibFileInfo@4 ?
This can be done by using extern "C":
What about exporting functions once, but without C++ name mangling, grafixLibFileInfo and not _grafixLibFileInfo@4 ?
This can be done by using extern "C"
it's plain C - the DLL I'm talking about at least.
This name decoration with underscore is an old 16 bit thing - afaik.
Add the @4 is showing the bytecount of the parameters. If two long would be passed, there would be a @8 - it's not a C++ function name.
What about exporting functions once, but without C++ name mangling, grafixLibFileInfo and not _grafixLibFileInfo@4 ?
This can be done by using extern "C":
I'm quite a Watcom-fan :-) the debugger is really great - just missing the possibility to code in teh debugger like in VS and changing from debugging to coding.
Bookmarks