GPRS协议解析示例。该示例演示里使用GPRS控件实现客户端程序向车载GPS终端发送点名、监听等指令
源代码在线查看: 测试程序dlg.h
// 测试程序Dlg.h : header file
//
//{{AFX_INCLUDES()
#include "gprs_control.h"
//}}AFX_INCLUDES
#if !defined(AFX_DLG_H__E7268694_84CC_4D09_8F5E_8D1A691E7412__INCLUDED_)
#define AFX_DLG_H__E7268694_84CC_4D09_8F5E_8D1A691E7412__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor
CSize sizes; //每次滚动的宽度
UINT ViewCount; //列表中显示的信息条数
void ADDView(CString Data); //在列表中显示数据
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
CListCtrl m_List;
CButton m_Calling;
CGPRS_control m_active;
CString m_ID;
CString m_ListenNumber;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnInital();
afx_msg void OnCalling();
afx_msg void OnListen();
afx_msg void OnIntervalMaxnetcheck();
afx_msg void OnLighteState();
afx_msg void OnMessage();
afx_msg void OnUpdateMessage();
afx_msg void OnSetIp();
afx_msg void OnSetId();
afx_msg void OnElecCrawl();
afx_msg void OnPhonenumber();
afx_msg void OnSuperSpeed();
afx_msg void OnRunWay();
afx_msg void OnAutoReport();
afx_msg void OnVoiceReport();
afx_msg void OnConfirm();
afx_msg void OnSendUnpressOrientGprscontrolctrl1(VARIANT FAR* unpressorient);
afx_msg void OnSendPressOrientGprscontrolctrl1(VARIANT FAR* pressorient);
afx_msg void OnUpShortMessageGprscontrolctrl1(VARIANT FAR* UpShortMessage);
afx_msg void OnSendVerifyMessageGprscontrolctrl1(VARIANT FAR* verifymessage);
afx_msg void OnWrongOrderMessageGprscontrolctrl1(VARIANT FAR* wrongmessage);
afx_msg void OnTestNetworkGprscontrolctrl1(VARIANT FAR* networkstatus);
afx_msg void OnElecRailAlarmGprscontrolctrl1(VARIANT FAR* ElecRailAlarm);
afx_msg void OnRequestRailPositionGprscontrolctrl1(VARIANT FAR* RequestRailPosition);
afx_msg void OnUrgentAlarmGprscontrolctrl1(VARIANT FAR* UrgentAlarm);
afx_msg void OnCallingOrientGprscontrolctrl1(VARIANT FAR* callingorientinfo);
afx_msg void OnRequestDirectionGprscontrolctrl1(VARIANT FAR* RequestDirection);
afx_msg void OnBlindCompensateGprscontrolctrl1(VARIANT FAR* blindcompensatedata);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__E7268694_84CC_4D09_8F5E_8D1A691E7412__INCLUDED_)