So I have been trying to get the demo extension built and so far have had no success. I followed the instructions on the wiki and indeed the dll seems to be picked up (I can't update it when pn.exe is running), but it does not show up on the extensions page.
I also tried just a blank version of the template with the same results.
Are there any debugging features? anyway to tell if the extension was not successfully initialized?
I am using VC++ Express 2008 (Win32) in release mode.
My current debugging code (since it was not working):
bool __stdcall pn_init_extension(int iface_version, extensions::IPN* pn)
{
::MessageBox(NULL, _T("Made it here..."), _T("Demo Plugin"), MB_OK);
if(iface_version != PN_EXT_IFACE_VERSION) {
::MessageBox(NULL, _T("Didn't Work!"), _T("Demo Plugin"), MB_ICONERROR | MB_OK);
return false;
}
//g_pn = pn;
// Do your initialisation stuff here...
//pn->GetGlobalOutputWindow()->AddToolOutput("Hello from the demo extension!");
//extensions::IAppEventSinkPtr appSink(new AppEventSink());
//pn->AddEventSink(appSink);
//Menu menu;
//pn->AddPluginMenuItems(&menu);
::MessageBox(NULL, _T("It Worked!"), _T("Demo Plugin"), MB_ICONERROR | MB_OK);
return true;
}
I built (release), I ran "pn.exe --findexts", I ran pn -- no message boxes, no line item in the extensions list.
any thoughts?