On Windows, C++ plug-ins must export their callback functions from the plug-in DLL. To export a function from a DLL, add the SICALLBACK macro to the function definition:
SICALLBACK MyCommand_Init( CRef& in_ctxt ) { //... }
SICALLBACK is defined in sicppsdk.h. On Windows, this macro resolves to:
extern "C" __declspec(dllexport) XSI::CStatus
extern "C" XSI::CStatus
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License