home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / httpsvr / httpsvr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.5 KB  |  57 lines

  1. // HttpSvr.h : main header file for the HTTPSVR application
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1997-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __AFXWIN_H__
  14.     #error include 'stdafx.h' before including this file for PCH
  15. #endif
  16.  
  17. #include "resource.h"       // main symbols
  18.  
  19. #define PORT_HTTP       80
  20. #define WSM_DOCHIT      (WM_USER+1)
  21. #define WSM_CGIDONE     (WM_USER+2)
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CHttpSvrApp:
  25. // See HttpSvr.cpp for the implementation of this class
  26. //
  27.  
  28. class CHttpSvrApp : public CWinApp
  29. {
  30. public:
  31.     void RegisterLogFile( void );
  32.     CHttpSvrApp();
  33.     ~CHttpSvrApp();
  34.     CString         m_strDefSvr;
  35.  
  36. // Overrides
  37.     // ClassWizard generated virtual function overrides
  38.     //{{AFX_VIRTUAL(CHttpSvrApp)
  39.     public:
  40.     virtual BOOL InitInstance();
  41.     virtual BOOL OnIdle(LONG lCount);
  42.     //}}AFX_VIRTUAL
  43.  
  44. // Implementation
  45.  
  46.     //{{AFX_MSG(CHttpSvrApp)
  47.     afx_msg void OnAppAbout();
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.  
  52. // global helper routines.....
  53. void AddFile( CString& strPath, UINT uStr );
  54. void AddFile( CString& strPath, const CString& strFile);
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.