Joe Guo wrote:
> Hi, I am writing a labview wrapper for some DLL functions (C++). The
> problem is that the name displayed does not exactly match the one
> selected in the dropdown list (please check the picture). Is this
> what NI called "name mangling"?
Yes! Your name mangling is the default stdcall name mangling from MSVC.
> If so, how do I export the names correctly using VC6 with the original
> DLL (no source code)? Your help will be highly appreciated.
You don't, unless you wan't to do Hex editing in the DLL file itself!
The export table is build at link time by the linker based on either a
..def file or on hints added to the binary object file added by the
compiler based on declspec(dllexport) statements in the source code.
If the C source did n
ot declare the function prototypes in between
#ifdef __cplusplus
extern "C" {
#endif
function prototype declaration
#ifdef __cplusplus
}
#endif
and uses the the declspec(dllexport) hint the DLL names are what you got
in your case.
But why bother at all. LabVIEW is able to deal with those mangled names
so just leave it alone.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390