home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
dho.zip
/
DHO
/
INCLUDE
/
APPLICAT.H
next >
Wrap
C/C++ Source or Header
|
1995-09-03
|
1KB
|
53 lines
/****************************************/
/* Developer Helper Object Set */
/* (C) 1994-95 Thomas E. Bednarz, Jr. */
/* All rights reserved */
/***************************************/
/* $Id: applicat.h 1.8 1995/09/03 01:27:59 teb Exp $ */
#ifndef __APPLICAT_H__
#define __APPLICAT_H__
#define INCL_GPI
#define INCL_WIN
#include <os2.h>
#include <object.h>
#include <process.h>
#include <window.h>
#include <dtopwin.h>
class TApplication : public TObject
{
protected:
TProcess *Proc;
QMSG QueMsg;
ULONG fResource;
TWinBase *MainWin;
HINI hin;
void handleInitError(char *errMsg);
public:
TApplication(ULONG resource);
virtual ~TApplication();
virtual void init(void);
void run(void);
void done(void);
virtual const char *getClassName(void);
virtual void CreateMainWindow(void);
HAB getAnchorBlock(void);
TWinBase *getMainWindow(void);
BOOL openINIfile(char* fname);
void closeINIfile();
void writeINIdata(char* section, char* index, PVOID val, ULONG size);
PULONG inqINIdataSize(char* section, char* index);
BOOL getINIdata(char* section, char* index, PVOID buf, ULONG size);
};
TApplication *getApplication();
extern TDesktopWindow *DesktopWin;
#endif /* applicat.h */