接口函数
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();}