extdllstate.cpp

来自「VC++编程技巧典型案例解析——基础与应用」· C++ 代码 · 共 32 行

CPP
32
字号
// EXTDLLState.cpp: implementation of the CEXTDLLState class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "EXTDLLState.h"

#ifdef _DEBUG
#undef THIS_FILE
//static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif




//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CEXTDLLState::CEXTDLLState()
{
	m_hInstOld = AfxGetResourceHandle();
    AfxSetResourceHandle(extensionDLL.hModule);

}

CEXTDLLState::~CEXTDLLState()
{
	AfxSetResourceHandle(m_hInstOld);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?