exportrdll.h

来自「这是书上的代码」· C头文件 代码 · 共 32 行

H
32
字号
//exportRDLL.h

#ifndef __EXPORT_DIALOG_RDDLL_H__
	#define __EXPORT_DIALOG_RDDLL_H__

#ifdef __EXPORT_DIALOG_RDDLL__
	#define EXPORT_DIALOG_CLASS __declspec(dllexport)
#else
	#define EXPORT_DIALOG_CLASS __declspec(dllimport)
#endif

class CTestDlg;

//输出该类主要为了调用对话框
class EXPORT_DIALOG_CLASS CTestDlgInRDLL : public  CObject
{
	DECLARE_DYNAMIC(CTestDlgInRDLL)
public:
	CTestDlgInRDLL();
	~CTestDlgInRDLL();
	//调用模态对话框
	void ModalDlgInRegularDLL();
	//调用非模态对话框
	void ModelessDlgInRegularDLL();
private:
	CTestDlg * m_pDlg;

};
	#ifndef __EXPORT_DIALOG_RDDLL__
		#pragma comment(lib, "RegularDLL.lib")	
	#endif
#endif //__EXPORT_DIALOG_RDDLL_H__

⌨️ 快捷键说明

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