【VC开源代码栏目提醒】:本文主要为网学会员提供EXTDLLState.cpp,希望对需要EXTDLLState.cpp网友有所帮助,学习一下!
// 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);
}