Page 1 of 1
.DLL/.LIB and decorated form functions names.
Posted: Thu Aug 30, 2007 6:13 pm
by freddix
Hi.
Does someone know how we can retrieve the decorated form of a .DLL/.LIB function name when having both a .h include file from C++ with the non decorated form and the .DLL/.LIB ?
Thanks.
Posted: Thu Aug 30, 2007 6:17 pm
by ts-soft
Posted: Fri Aug 31, 2007 10:08 am
by freddix
nice tool but it does not detect the parameters.
Can you tell me how you did to get the list of commands available in the .LIB file ? With the .DLL commands ?
For example :
Import "Basic2D.lib"
dbRgbGYA() As "?dbRgbG@@YAHK@Z"
EndImport
Should Be :
Import "Basic2D.lib"
dbRgbG( Param1.l ) As "?dbRgbG@@YAHK@Z"
EndImport
Posted: Fri Aug 31, 2007 10:55 am
by Fred
If you own the C++ source, just use "extern "C"" before the exported function to avoid decorations.
Posted: Fri Aug 31, 2007 11:26 am
by freddix
I don't have the C++ source but the include.h file associated to the .lib
(.h contain all parameters type)
Posted: Fri Aug 31, 2007 1:55 pm
by ts-soft
>> nice tool but it does not detect the parameters.
For CDECL you have to read the header for parameters. Detection only with
stdcall decoration available