现在的位置: 首页 > 综合 > 正文

对话框DLL封装

2018年05月25日 ⁄ 综合 ⁄ 共 376字 ⁄ 字号 评论关闭

接口函数

Interface.h

///////////////////
#include "stdafx.h"
#pragma  comment(lib,"PrintMSG.lib")

extern "C" __declspec(dllexport) void ShowDlg(HWND hMainWnd);
///////////////////

Interface.cpp

////////////////////////
#include "StdAfx.h"
#include "testDlg.h"
#include "resource.h"

CTestDlg dllDialog;

extern "C" __declspec(dllexport) void ShowDlg(HWND hMainWnd)
{
 dllDialog.DoModal();
}
////////////////////////

抱歉!评论已关闭.