S3DBClient.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
源码类别:

模拟服务器

开发平台:

C/C++

  1. // S3DBClient.h : main header file for the S3DBCLIENT application
  2. //
  3. #if !defined(AFX_S3DBCLIENT_H__FE1AC36E_2AE6_404C_BC43_7415CFD68B01__INCLUDED_)
  4. #define AFX_S3DBCLIENT_H__FE1AC36E_2AE6_404C_BC43_7415CFD68B01__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 "ClientSocket.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CS3DBClientApp:
  15. // See S3DBClient.cpp for the implementation of this class
  16. //
  17. typedef struct tag_SETUPINFO
  18. {
  19. short siLocalPort;
  20. char szDBServerIP[16];
  21. short siDBServerPort;
  22. DWORD dwWaitTime;
  23. }_SETUPINFO, *_PSETUPINFO;
  24. class CS3DBClientApp : public CWinApp
  25. {
  26. public:
  27. CS3DBClientApp();
  28. BOOL m_bConnected;
  29. _SETUPINFO m_serverInfo;
  30. CClientSocket* m_pClientSocket;
  31. CString m_cstrCurUsername;
  32. CString m_cstrCurPassword;
  33. TCHAR m_szDefaultAccPassword[LOGIN_PASSWORD_MAX_LEN+2];
  34. TCHAR m_szDefaultAccRealName[LOGIN_REALNAME_MAX_LEN+2];
  35. TCHAR m_szLogPath[MAX_PATH+1];
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CS3DBClientApp)
  39. public:
  40. virtual BOOL InitInstance();
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. //{{AFX_MSG(CS3DBClientApp)
  44. // NOTE - the ClassWizard will add and remove member functions here.
  45. //    DO NOT EDIT what you see in these blocks of generated code !
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. protected:
  49. void InitAccOperation();
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_S3DBCLIENT_H__FE1AC36E_2AE6_404C_BC43_7415CFD68B01__INCLUDED_)