I try to export the STDAPI DllGetClassObject(REFCLSID,REFIID,PPVOID) function STDAPI DllGetClassObject(REFCLSID,REFIID,PPVOID) , but the DllGetClassObject@16 function is exported. How to make it so that the compiler does not attribute '@ 16'? I use IDE Code :: Blocks.

extern 'c' already defined in STDAPI.

    2 answers 2

    Try writing an extern "C" in front of her.

      Try adding a pragma to the source

       #pragma comment( linker, "/export:DllGetClassObject" )