DDE server VC++


用VC++实现的DDE server端代码,client端代码其实也包括在其中了,debug目录中有编译的程序;亲自编写调试的。没有任何问题,可以与组态王或其他软件进行DDE通信
资源截图
代码片段和文件信息
// DDEserver.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “DDEserver.h“
#include “DDEserverDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDDEserverApp

BEGIN_MESSAGE_MAP(CDDEserverApp CWinApp)
//{{AFX_MSG_MAP(CDDEserverApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDDEserverApp construction

CDDEserverApp::CDDEserverApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CDDEserverApp object

CDDEserverApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CDDEserverApp initialization

BOOL CDDEserverApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CDDEserverDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      35940  2013-06-13 16:54  DDEserverDDEserver.aps

     文件       1271  2013-06-13 17:05  DDEserverDDEserver.clw

     文件       2105  2013-06-13 16:17  DDEserverDDEserver.cpp

     文件       4217  2013-06-13 16:53  DDEserverDDEserver.dsp

     文件        543  2013-06-13 16:17  DDEserverDDEserver.dsw

     文件       1357  2013-06-13 16:17  DDEserverDDEserver.h

     文件      41984  2013-06-13 17:06  DDEserverDDEserver.ncb

     文件      53760  2013-06-13 17:06  DDEserverDDEserver.opt

     文件       1301  2013-06-13 17:03  DDEserverDDEserver.plg

     文件       5566  2013-06-13 16:54  DDEserverDDEserver.rc

     文件       7304  2013-06-13 17:05  DDEserverDDEserverDlg.cpp

     文件       1422  2013-06-13 16:34  DDEserverDDEserverDlg.h

     文件    3179520  2013-06-13 17:03  DDEserverDebugDDEserver.bsc

     文件     110668  2013-06-13 17:03  DDEserverDebugDDEserver.exe

     文件     228428  2013-06-13 17:03  DDEserverDebugDDEserver.ilk

     文件      14201  2013-06-13 16:52  DDEserverDebugDDEserver.obj

     文件    6931704  2013-06-13 16:52  DDEserverDebugDDEserver.pch

     文件     386048  2013-06-13 17:03  DDEserverDebugDDEserver.pdb

     文件       2856  2013-06-13 16:54  DDEserverDebugDDEserver.res

     文件          0  2013-06-13 16:52  DDEserverDebugDDEserver.sbr

     文件      31853  2013-06-13 17:03  DDEserverDebugDDEserverDlg.obj

     文件          0  2013-06-13 17:03  DDEserverDebugDDEserverDlg.sbr

     文件     105686  2013-06-13 16:52  DDEserverDebugStdAfx.obj

     文件    1374898  2013-06-13 16:52  DDEserverDebugStdAfx.sbr

     文件     205824  2013-06-13 17:03  DDEserverDebugvc60.idb

     文件     372736  2013-06-13 17:03  DDEserverDebugvc60.pdb

     文件       3633  2013-06-13 16:17  DDEserverReadMe.txt

     文件       1078  2013-06-13 16:17  DDEserver
esDDEserver.ico

     文件        401  2013-06-13 16:17  DDEserver
esDDEserver.rc2

     文件        733  2013-06-13 16:25  DDEserverResource.h

............此处省略8个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)