"Jochen Kalmbach [MVP]" <no********************@holzma.dewrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi Toto!
>extern "C" __declspec(dllexport) int WINAPI AutoOpen(void)
In spite of extern "C", the name of this function is still decorated in
the DLL (_AutoOpen@0 instead of AutoOpen). Why ?
This is the default naming if you choose 'extern "C"'.
Well, that is the combination of extern "C" with __stdcall (which is part of
WINAPI). It definitely is not the C++ mangled name, which encodes all
parameters, namespace, and so forth.
>
If you want other names, you must use a *.def file!
Yes, and also allows you to control ordinals, etc.
>
Greetings
Jochen