| 
            Last change
 on this file since 116 was             2, checked in by root, 23 years ago           | 
        
        
          | 
             
Initial revision 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            911 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2] | 1 | #define INCL_DOS
 | 
|---|
 | 2 | #define INCL_WIN
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 | #include <os2.h>
 | 
|---|
 | 5 | #include <stdarg.h>
 | 
|---|
 | 6 | #include <stdio.h>
 | 
|---|
 | 7 | #include <stdlib.h>
 | 
|---|
 | 8 | #include <string.h>
 | 
|---|
 | 9 | #include <ctype.h>
 | 
|---|
 | 10 | #include "dll\fm3dll.h"
 | 
|---|
 | 11 | #include "dll\fm3dlg.h"
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 | 
 | 
|---|
 | 14 | #ifdef NEVER
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | VOID APIENTRY deinit (ULONG why) {
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 |   if(fmprof)
 | 
|---|
 | 19 |     PrfCloseProfile(fmprof);
 | 
|---|
 | 20 |   fmprof = (HINI)0;
 | 
|---|
 | 21 | 
 | 
|---|
 | 22 |   flushall();
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 |   DosExitList(EXLST_REMOVE,deinit);
 | 
|---|
 | 25 | }
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | #endif
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 | int main (int argc,char *argv[]) {
 | 
|---|
 | 31 | 
 | 
|---|
 | 32 |   HAB         hab;
 | 
|---|
 | 33 |   HMQ         hmq;
 | 
|---|
 | 34 |   QMSG        qmsg;
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 |   strcpy(appname,"DATABAR");
 | 
|---|
 | 37 | #ifdef NEVER
 | 
|---|
 | 38 |   DosExitList(EXLST_ADD,deinit);
 | 
|---|
 | 39 | #endif
 | 
|---|
 | 40 |   hab = WinInitialize(0);
 | 
|---|
 | 41 |   if(hab) {
 | 
|---|
 | 42 |     hmq = WinCreateMsgQueue(hab,384);
 | 
|---|
 | 43 |     if(hmq) {
 | 
|---|
 | 44 |       if(InitFM3DLL(hab,argc,argv)) {
 | 
|---|
 | 45 |         if(CreateDataBar(HWND_DESKTOP,0)) {
 | 
|---|
 | 46 |           while(WinGetMsg(hab,&qmsg,(HWND)0,0,0))
 | 
|---|
 | 47 |             WinDispatchMsg(hab,&qmsg);
 | 
|---|
 | 48 |         }
 | 
|---|
 | 49 |       }
 | 
|---|
 | 50 |       WinDestroyMsgQueue(hmq);
 | 
|---|
 | 51 |     }
 | 
|---|
 | 52 |     WinTerminate(hab);
 | 
|---|
 | 53 |   }
 | 
|---|
 | 54 |   return 0;
 | 
|---|
 | 55 | }
 | 
|---|
 | 56 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.