PDA

View Full Version : name of exported dll functions



vrudolf
30th July 2006, 20:18
hi,

can I affect the name of the exported function?

EXPORTS
@rsGetLastError$qv @1 ; rsGetLastError()
@rsXML2CSV$qpc @2 ; rsXML2CSV(char *)
___CPPdebugHook @3 ; ___CPPdebugHook

but I would like

EXPORTS
rsGetLastError @1 ; rsGetLastError()
rsXML2CSV @2 ; rsXML2CSV(char *)
___CPPdebugHook @3 ; ___CPPdebugHook

thanks in advance

jacek
30th July 2006, 21:00
Try putting those functions in extern "C" block.

vrudolf
30th July 2006, 21:18
Try putting those functions in extern "C" block.

with extern "C" and __declspec(dllexport) __stdcall I receive the desired named assignment...

thx :D