Skip to content

Instantly share code, notes, and snippets.

@rgm
Created April 1, 2011 21:03
Show Gist options
  • Save rgm/898853 to your computer and use it in GitHub Desktop.
Save rgm/898853 to your computer and use it in GitHub Desktop.
//#include "Menu.h"
#define REGISTER(x) REGISTER_Extension<x::Definition>(GROUPID_Extension##x, action, pInfo, ioData, cbp, reply)
extern "C" long GS_EXTERNAL_ENTRY plugin_main(long action,
void *pInfo,
long &ioData,
CallBackPtr cbp)
{
::GS_InitializeVCOM(cbp);
gCBP = cbp;
{
using namespace VectorWorks;
VCOMPtr<ISDK> localSDK(IID_SDK);
gSDK = localSDK;
}
long reply = 0L;
using namespace VWFC::PluginSupport;
//REGISTER(Menu);
return reply;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment