05-09-22-vc-1.txt
资源名称:vc++(dll).rar [点击查看]
上传用户:sy_lfz
上传日期:2015-02-22
资源大小:1279k
文件大小:2k
源码类别:
VC书籍
开发平台:
Visual C++
- #if !defined(AFX_DLLDIALOG_H__CEA4C6AF_245D_48A6_B11A_A5521EAD7C4E__INCLUDED_)
- #define AFX_DLLDIALOG_H__CEA4C6AF_245D_48A6_B11A_A5521EAD7C4E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DllDialog.h : header file
- /////////////////////////////////////////////////////////////////////////////
- // CDllDialog dialog
- class CDllDialog : public CDialog
- {
- // Construction
- public:
- CDllDialog(CWnd* pParent = NULL); // standard constructor
- enum { IDD = IDD_DLL_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- // Implementation
- protected:
- afx_msg void OnHelloButton();
- DECLARE_MESSAGE_MAP()
- };
- #endif
- // DllDialog.cpp : implementation file
- #include "stdafx.h"
- #include "RegularDll.h"
- #include "DllDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDllDialog dialog
- CDllDialog::CDllDialog(CWnd* pParent /*=NULL*/)
- : CDialog(CDllDialog::IDD, pParent)
- {
- }
- void CDllDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- }
- BEGIN_MESSAGE_MAP(CDllDialog, CDialog)
- ON_BN_CLICKED(IDC_HELLO_BUTTON, OnHelloButton)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDllDialog message handlers
- void CDllDialog::OnHelloButton()
- {
- MessageBox("Hello,pconline的网友","pconline");
- }