MMSDlg.h
资源名称:MMS.rar [点击查看]
上传用户:szhqbq
上传日期:2014-07-08
资源大小:46k
文件大小:2k
源码类别:
手机彩信(MMS)编程
开发平台:
Visual C++
- // MMSDlg.h : header file
- //
- #if !defined(AFX_MMSDLG_H__E2F42985_C18E_4DD3_A8EE_9749C46D2BE5__INCLUDED_)
- #define AFX_MMSDLG_H__E2F42985_C18E_4DD3_A8EE_9749C46D2BE5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CMMSDlg dialog
- class CMMSDlg : public CDialog
- {
- // Construction
- public:
- CMMSDlg(CWnd* pParent = NULL); // standard constructor
- CString m_SaveFileName;
- char *m_strFile;
- long m_FileLen;
- unsigned char* m_MMSData;
- // Dialog Data
- //{{AFX_DATA(CMMSDlg)
- enum { IDD = IDD_MMS_DIALOG };
- CString m_filename;
- CString m_DestNumber;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMMSDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- int MMSCode(unsigned char mmsData[90000],long fileLen,const char * strFile);
- long ReadBinFile(char* buf,LPCSTR filename);
- int WriteBinFile(unsigned char* buf,long FileLen,LPCSTR filename);
- BYTE GetUintvarLength(IN DWORD dwUintvar);
- void UintvarEncode(IN DWORD dwUintvar,IN BYTE byLength, IN OUT BYTE **ppPDU);
- // Generated message map functions
- //{{AFX_MSG(CMMSDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnOpen();
- afx_msg void OnSave();
- afx_msg void OnCode();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MMSDLG_H__E2F42985_C18E_4DD3_A8EE_9749C46D2BE5__INCLUDED_)