【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了ATLServer.cpp提供大家参考,希望对大家有所帮助!
// ATLServer.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
// For custom assert and trace handling with WebDbg.exe
#ifdef _DEBUG
CDebugReportHook g_ReportHook;
#endif
#include "ATLServer.h"
[ module(name="MyATLServer", type="dll") ]
class CDllMainOverride
{
public:
BOOL WINAPI DllMain(DWORD dwReason, LPVOID lpReserved)
{
#if defined(_M_IX86)
if (dwReason == DLL_PROCESS_ATTACH)
{
// stack overflow handler
_set_security_error_handler( AtlsSecErrHandlerFunc );
}
#endif
return __super::DllMain(dwReason, lpReserved);
}
};
[ emitidl(restricted) ];
上一篇:
ATLControl.cpp
下一篇:
汉语言文学专业就业教育创新