📄 mysmgp3client.h
字号:
/**
* MySMGP3Client.h
*
* SMGP3 API Demo Application.
*
* Copyright 2003-2006 北京风起水流软件工作室
*
* http://www.zealware.com
*
* princetoad@zealware.com
*
*/
//#include "stdafx.h"
#include "SMGP3APIDemo.h"
#include "SMGP3APIDemoDlg.h"
/** 包含必要的头文件和库文件
*/
#include <smgp/smgpconn.h>
#if defined(_MSC_VER)
#if _MSC_VER >= 1400 ///< vc8(2005)
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc8_md")
#else
#pragma comment(lib, "smals_vc8_md")
#endif
#elif _MSC_VER >= 1300 ///< VC7(2003)
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc71_md")
#else
#pragma comment(lib, "smals_vc71_md")
#endif
#else ///< VC6
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc6_md")
#else
#pragma comment(lib, "smals_vc6_md")
#endif
#endif
#endif
class MySMGPClient : public SMGPClient
{
public:
MySMGPClient(CSMGP3APIDemoDlg & _dlg);
virtual ~MySMGPClient();
/**断开,退出时调用
*/
void Release();
/**打印出连接的统计信息
*/
void DumpStatus(SMGPConnection & connection);
/**@name 重写的虚函数,执行自定义操作
*/
//@{
BOOL OnConnectionSubmiting(
SMGPConnection & connection,
smgp_submit _message
);
void OnConnectionSubmited(
SMGPConnection & connection,
smgp_submit _message
);
void OnConnectionSubmitFailed(
SMGPConnection & connection,
smgp_submit _message
);
void OnReceivedConnectionSubmitResponse(
SMGPConnection & connection,
smgp_submit_deliver_resp _message
);
void OnReceivedConnectionDeliver(
SMGPConnection & connection,
smgp_deliver _message
);
void OnReceivedConnectionStatusReport(
SMGPConnection & connection,
smgp_deliver _message
);
void OnConnectionCleared(SMGPConnection & connection);
void OnConnectionLogWrite(SMGPConnection & connection, const char * str);
protected:
CSMGP3APIDemoDlg & dlg;
//@}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -