none
Eliminate Leading underscore of calling convention _stdcall RRS feed

  • Question

  • Using Visual Studio 2015, coding in C++ to create a simple WIN DLL .

    DLL routine is declared as "_declspec(dllexport) int _WINAPI Init(); "

    The calling application looks for "Init" but inside the DLL there is the decorated name "_Init", and the call fails.

    I can't change the calling application.

    How to make sure the DLL will have the routine name without leading underscore ("_")?

    Thanks,

    Arie

    Tuesday, May 24, 2016 2:35 PM

Answers