📄 memorytest.cpp
字号:
// The entry point for the DLL application.
#include "StdAfx.h"
#include "MemoryTestImpl.h"
// The main CMemoryTest object
static CMemoryTest* pMemoryTest = NULL;
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_DETACH:
{
if (pMemoryTest)
{
delete pMemoryTest;
pMemoryTest = NULL;
}
break;
}
}
return TRUE;
}
extern "C" __declspec(dllexport) CAbsMemoryTest* CreateObject()
{
pMemoryTest = new CMemoryTest;
return pMemoryTest;
}
CAbsMemoryTest::~CAbsMemoryTest() {}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -