home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / http / http.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.8 KB  |  71 lines

  1. // Http.h : main header file for the Http application
  2. //
  3.  
  4. #if !defined(AFX_HTTP_H__E9CAE8B6_9908_11D1_9327_00600820B4FF__INCLUDED_)
  5. #define AFX_HTTP_H__E9CAE8B6_9908_11D1_9327_00600820B4FF__INCLUDED_
  6.  
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10.  
  11. #ifndef __AFXWIN_H__
  12.     #error include 'stdafx.h' before including this file for PCH
  13. #endif
  14.  
  15. #include "resource.h"        // main symbols
  16.  
  17. #define BUFFER_SIZE 4096        // buffer size
  18. #define MAX_WEBPAGE_SIZE 32000    // max WEB page size
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CHttpApp:
  22. //
  23.  
  24. class CHttpApp : public CWinApp
  25. {
  26. public:
  27.     CHttpApp(LPCTSTR lpszAppName);
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CHttpApp)
  32.     public:
  33.     virtual BOOL InitInstance();
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37.  
  38.     //{{AFX_MSG(CHttpApp)
  39.         // NOTE - the ClassWizard will add and remove member functions here.
  40.         //    DO NOT EDIT what you see in these blocks of generated code !
  41.     //}}AFX_MSG
  42.     DECLARE_MESSAGE_MAP()
  43. };
  44.  
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. class CMyHttpSession : public CInternetSession
  48. {
  49. public:
  50.     CMyHttpSession(LPCTSTR pszAppName, DWORD dwContext, int nMethod);
  51.     virtual void OnStatusCallback(DWORD dwContext, DWORD dwInternetStatus,
  52.         LPVOID lpvStatusInfomration, DWORD dwStatusInformationLen);
  53. };
  54.  
  55.  
  56. class CMyHttpException : public CException
  57. {
  58.     DECLARE_DYNCREATE(CMyHttpException)
  59.  
  60. public:
  61.     CMyHttpException(int nCode = 0);
  62.     ~CMyHttpException() { }
  63.  
  64.     int m_nErrorCode;
  65. };
  66.  
  67.  
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_HTTp_H__E9CAE8B6_9908_11D1_9327_00600820B4FF__INCLUDED_)
  71.