資源簡介
用于學習MFC控件
代碼片段和文件信息
//?test3.cpp?:?Defines?the?initialization?routines?for?the?DLL.
//
#include?“stdafx.h“
#include?“test3.h“
#include?
#define??DllExport?_declspec(dllexport)????
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
#pragma?data_seg(“.SHARDAT“)
static?HHOOK?hkb?=?NULL;
#pragma?data_seg()
HINSTANCE?hins;
CFile?m_pfile;
HWND?hcaretWnd?=?NULL;
//
// Note!
//
// If?this?DLL?is?dynamically?linked?against?the?MFC
// DLLs?any?functions?exported?from?this?DLL?which
// call?into?MFC?must?have?the?AFX_MANAGE_STATE?macro
// added?at?the?very?beginning?of?the?function.
//
// For?example:
//
// extern?“C“?BOOL?PASCAL?EXPORT?ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// //
- 上一篇:C語言深度解剖9822
- 下一篇:實現按照姓名進行排序的算法
評論
共有 條評論