29 lines
592 B
C++
29 lines
592 B
C++
#include "StdAfx.h"
|
|
#include "StdArx.h"
|
|
#include "resource.h"
|
|
#include <afxdllx.h>
|
|
|
|
#include "ArxEntryPoint.h"
|
|
#include "ThunderCmdGroup.h"
|
|
|
|
HINSTANCE _hdllInstance =NULL ;
|
|
|
|
AC_IMPLEMENT_EXTENSION_MODULE(ThunderProof);
|
|
|
|
extern "C"
|
|
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
|
|
{
|
|
_hdllInstance = hInstance;
|
|
if (dwReason == DLL_PROCESS_ATTACH)
|
|
{
|
|
ThunderProof.AttachInstance(hInstance);
|
|
}
|
|
else if (dwReason == DLL_PROCESS_DETACH)
|
|
{
|
|
ThunderProof.DetachInstance();
|
|
}
|
|
return TRUE; // ok
|
|
}
|
|
|
|
AEC_IMPLEMENT_ARXCMD_ARXAPP_ENTRYPOINT(CThunderCmdGroup)
|