一,Regular dll分两类
1,静态链接到MFC的规则dll
2,动态链接到MFC的规则dll
创建一个Regular dll,添加一个Dialog,
出现:
error C2065: 'IDD_DIALOG1' : undeclared identifier
解决:
在Resource.h中有:#define IDD_DIALOG1 1000
将Resource.h添加到#include "stdafx.h"中。
1,显示调用MFC规则dll
2,隐式调用MFC规则dll
#pragma comment(lib,"regularDll.lib")
extern "C" _declspec(dllimport)void ShowDlg(void);
extern "C" _declspec(dllimport)void ShowDlg(void);
ShowDlg()可直接使用