GpsSC.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. // GpsSC.h : main header file for the GPSSC application
  2. //
  3. #if !defined(AFX_GPSSC_H__58804DE5_631B_11D8_B346_0060975FFAEE__INCLUDED_)
  4. #define AFX_GPSSC_H__58804DE5_631B_11D8_B346_0060975FFAEE__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. #include "resource.h"       // main symbols
  12. #include "SMdata.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CGpsSCApp:
  15. // See GpsSC.cpp for the implementation of this class
  16. //
  17. struct ChangeNormal
  18. {
  19. double a11,a12;
  20. double a21,a22;
  21. double dx,dy;
  22. };
  23. struct ChangeTriangle
  24. {
  25. double x1,y1,x2,y2,x3,y3;
  26. };
  27. extern CString str_GetTreeItemText; //全局变量获取树形控件子项)
  28. class CGpsSCApp : public CWinApp
  29. {
  30. public:
  31. CGpsSCApp();
  32. //短消息中心号码
  33. CString m_sSMNum;
  34. //中心电话号码
  35. private :
  36. CString strPassWord;
  37. BOOL password;
  38. CString m_strCurrPath;
  39. public:
  40. CString GetCDiskID();
  41. CString GetMyPath();
  42. void WriteFile(CString Info);
  43. CString ReadFile();
  44. CString DealcArrTo8(CString strArr4);
  45. bool RegiesterNow(char szBuff[]);
  46. virtual BOOL PreTranslateMessage(MSG* pMsg);
  47. BOOL CreatePassWordDlg();
  48. CString GetProjectInDir();
  49. CString GetPassWord(const CString strpassderectory);
  50. void SetFileReadOnly(CString FileName,bool ReadOnly);
  51. long IsFileExist(CString FileName);
  52. void SaveLog(); //保存日志
  53. void ReadLog(); //读日志
  54. void SetFileStatus(CString FileName,bool ReadOnly); //设置文件属性ic:
  55. public:
  56. CString m_strLoginUser;
  57. CString m_strPort;
  58. CString m_strDataBits;
  59. CString m_strBaud;
  60. int m_nParity;
  61. int m_nStopBit;
  62. bool m_bUserType;
  63. // Overrides
  64. // ClassWizard generated virtual function overrides
  65. //{{AFX_VIRTUAL(CGpsSCApp)
  66. public:
  67. virtual BOOL InitInstance();
  68. virtual int ExitInstance();
  69. //}}AFX_VIRTUAL
  70. // Implementation
  71. //{{AFX_MSG(CGpsSCApp)
  72. afx_msg void OnAppAbout();
  73. afx_msg void OnSmscnumbersetting();
  74. afx_msg void OnUpdateSmscnumbersetting(CCmdUI* pCmdUI);
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. };
  78. /////////////////////////////////////////////////////////////////////////////
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_GPSSC_H__58804DE5_631B_11D8_B346_0060975FFAEE__INCLUDED_)