⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dde.h

📁 《Windows应用程序捆绑核心编程》配套源码
💻 H
字号:
// DDE.h: 定义CMyDde类.
//
#ifndef _DDE_H__INCLUDED
#define _DDE_H__INCLUDED
#include <ddeml.h>

class CMyDde  
{
public:
	CMyDde();
	~CMyDde();

    // 静态回调成员函数.
    static HDDEDATA CALLBACK DdeCallback(UINT iType,UINT iFmt,
		HCONV hConv,HSZ hsz1,HSZ hsz2,
		HDDEDATA hData,DWORD dwData1,DWORD data2);

	void DdeCall(UINT iType, LPCSTR szSvr,LPCSTR szTopic,LPCSTR szAtom);

	void DdeServer(CString strReply);
	void DdeClient(CString strRequest);
    
	CString GetReply()   { return m_strReply;}
    CString GetRequest() { return m_strRequest;}

private:
	static CMyDde* fakeThis;
	DWORD    idInst;
	CString  AppName;
	CString m_strReply;
	CString m_strRequest;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -