c++ - Using _stdcall will change name of exported functions in dll -
i trying make module (dll) profilab
. work, there should list of exported names, example
// return number of inputs unsigned char numinputs()
when looking @ examples c++ builder
, it's declared this
extern "c" __declspec(dllexport) unsigned char _stdcall numinputs();
when declare same way in visual studio 2013 express (?) c++ project, getting name exported (checked dependency walker):
_numinputs@0
which doesn't works profilab
.
removing _stdcall
part generate proper name (numimputs
), software crash , think due missing _stdcall
part.
what should do? how export numinputs
, have _stdcall
@ same time?
define function right calling convention (stdcall).
thus, won't crash.
still, need right names or won't link, use def-file explicitly lists function shall exported using name (if any) and/or specified ordinal.
library btree exports insert @1 delete @2 member @3 min @4
this example copied linked documentation. export statements follow pattern:
entryname[=internalname] [@ordinal [noname]] [[private] | [data]]
Comments
Post a Comment