Exporting Callbacks

On Windows, C++ plug-ins must export their callback functions from the plug-in DLL. To export a function from a DLL, add the XSIPLUGINCALLBACK macro to the function definition:

    XSIPLUGINCALLBACK CStatus MyCommand_Init( CRef& in_ctxt )
    {
       //...
    }

XSIPLUGINCALLBACK is defined in sicppsdk.h. On Windows, this macro resolves to:

    extern "C" __declspec(dllexport)

and on Linux to:

    extern "C"

Autodesk Softimage v7.5