home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / APPLICAT.H < prev    next >
C/C++ Source or Header  |  1995-09-03  |  1KB  |  53 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: applicat.h 1.8 1995/09/03 01:27:59 teb Exp $ */
  8.  
  9. #ifndef __APPLICAT_H__
  10. #define __APPLICAT_H__
  11.  
  12. #define INCL_GPI
  13. #define INCL_WIN
  14. #include <os2.h>
  15. #include <object.h>
  16. #include <process.h>
  17. #include <window.h>
  18. #include <dtopwin.h>
  19.  
  20. class TApplication : public TObject
  21. {
  22.    protected:
  23.       TProcess *Proc;
  24.       QMSG     QueMsg;
  25.       ULONG fResource;
  26.       TWinBase  *MainWin;
  27.       HINI hin;
  28.  
  29.       void handleInitError(char *errMsg);
  30.  
  31.    public:
  32.     TApplication(ULONG resource);
  33.     virtual ~TApplication();
  34.     virtual void init(void);
  35.     void run(void);
  36.     void done(void);
  37.     virtual const char *getClassName(void);
  38.     virtual void CreateMainWindow(void);
  39.     HAB getAnchorBlock(void);
  40.     TWinBase *getMainWindow(void);
  41.     BOOL openINIfile(char* fname);
  42.     void closeINIfile();
  43.     void writeINIdata(char* section, char* index, PVOID val, ULONG size);
  44.     PULONG inqINIdataSize(char* section, char* index);
  45.     BOOL getINIdata(char* section, char* index, PVOID buf, ULONG size);
  46.  
  47. };
  48.  
  49. TApplication *getApplication();
  50. extern TDesktopWindow *DesktopWin;
  51.  
  52. #endif /* applicat.h */
  53.