对话框DLL封装

接口函数

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();
}
////////////////////////

posted @ 2012-12-06 15:28  废弃账号  阅读(125)  评论(0编辑  收藏  举报