home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 January / Pcwk0198.iso / Zadarmo / HEXVIEW / SRC / HEXVIEW.H < prev    next >
C/C++ Source or Header  |  1996-08-01  |  2KB  |  66 lines

  1. /* ---------------------------------------------------------------------------
  2.  
  3.    This code can be used as you wish but without warranties as to performance 
  4.    of merchantability or any other warranties whether expressed or implied.
  5.    
  6.      Written by Mike Funduc, Funduc Software Inc. 8/1/96
  7.  
  8.      To download the code and more useful utilities (including Search and
  9.      Replace for Windows 95/NT, 3.1x) go to:
  10.      http://home.sprynet.com/sprynet/funduc  or
  11.      http://ourworld.compuserve.com/homepages/funduc
  12.  
  13. ----------------------------------------------------------------------------*/
  14.  
  15. // hexview.h : main header file for the HEXVIEW application
  16. //
  17.  
  18. #ifndef __AFXWIN_H__
  19.     #error include 'stdafx.h' before including this file for PCH
  20. #endif
  21.  
  22. #include "resource.h"       // main symbols
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CHexviewApp:
  26. // See hexview.cpp for the implementation of this class
  27. //
  28. class CHexCommandLine : public CCommandLineInfo
  29. {
  30. protected:
  31.     virtual void ParseParam( LPCTSTR lpszParam, BOOL bFlag, BOOL bLast);
  32. public:
  33.     CHexCommandLine() : CCommandLineInfo(), m_lStartOffset(-1), m_lEndOffset(-1) {};
  34.     long m_lStartOffset, m_lEndOffset;
  35. };
  36.  
  37. class CHexviewApp : public CWinApp
  38. {
  39. public:
  40.     CHexviewApp();
  41.     void GetOffsets(long &lStartOffset, long &lEndOffset);
  42.  
  43. private:
  44.     long m_lStartOffset, m_lEndOffset;
  45. // Overrides
  46.     // ClassWizard generated virtual function overrides
  47.     //{{AFX_VIRTUAL(CHexviewApp)
  48.     public:
  49.     virtual BOOL InitInstance();
  50.     //}}AFX_VIRTUAL
  51.  
  52. // Implementation
  53.  
  54.     //{{AFX_MSG(CHexviewApp)
  55.     afx_msg void OnAppAbout();
  56.         // NOTE - the ClassWizard will add and remove member functions here.
  57.         //    DO NOT EDIT what you see in these blocks of generated code !
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. // Returns application pointer (already cast)
  63. CHexviewApp *HexGetApp();
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66.