From de594644d5c14142346cbb039b027af79e718904 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 May 2018 21:42:46 +0300 Subject: cmstub.lib statically linked to any plugin that uses CMPlugin template --- include/newpluginapi.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'include/newpluginapi.h') diff --git a/include/newpluginapi.h b/include/newpluginapi.h index fc1344030c..278b9192e4 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -331,13 +331,6 @@ template class PLUGIN : public CMPluginBase { typedef CMPluginBase CSuper; -public: - static BOOL WINAPI RawDllMain(HINSTANCE hInstance, DWORD, LPVOID) - { - g_plugin.setInst(hInstance); - return TRUE; - } - protected: PLUGIN(const char *moduleName) : CSuper(moduleName) @@ -420,4 +413,12 @@ public: template OBJLIST

ACCPROTOPLUGIN

::g_arInstances(1, PtrKeySortT); +#ifndef __NO_CMPLUGIN_NEEDED +#ifdef _DEBUG +#pragma comment(lib, "cmstubd.lib") +#else +#pragma comment(lib, "cmstub.lib") +#endif +#endif + #endif // M_NEWPLUGINAPI_H__ -- cgit v1.2.3