dde.h

来自「《Windows应用程序捆绑核心编程》配套源码」· C头文件 代码 · 共 34 行

H
34
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?