products/TorqueSocketsPlugin/plugin.cpp
NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, 
	int16_t argc, char* argn[], char* argv[], NPSavedData* saved)
{
   Plugin* plugin = new(std::nothrow) Plugin(instance, &NPNFuncs);
   if(!plugin)
      return NPERR_OUT_OF_MEMORY_ERROR;
   
   instance->pdata = plugin;
   return NPERR_NO_ERROR;
}
// Called to create a new instance of the plugin
Called to create a new instance of the plugin
Called to create a new instance of the plugin
NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, 
	int16_t argc, char* argn[], char* argv[], NPSavedData* saved)
{
   Plugin* plugin = new(std::nothrow) Plugin(instance, &NPNFuncs);
   if(!plugin)
      return NPERR_OUT_OF_MEMORY_ERROR;
   instance->pdata = plugin;
   return NPERR_NO_ERROR;
}
NPError NPP_New ( NPMIMEType pluginType , NPP instance , uint16_t mode , int16_t argc , char * argn [ ] , char * argv [ ] , NPSavedData * saved ) { Plugin * plugin = new ( std :: nothrow ) Plugin ( instance , & NPNFuncs ) ; if ( ! plugin ) return NPERR_OUT_OF_MEMORY_ERROR ; instance -> pdata = plugin ; return NPERR_NO_ERROR ; }
Called to create a new instance of the plugin
Called to create a new instance of the plugin