| 
            Last change
 on this file since 1268 was             1203, checked in by John Small, 17 years ago           | 
        
        
          | 
             
Ticket 187: Move datadevlarations/definitions out of fm3dll.h 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            1.3 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [273] | 1 | 
 | 
|---|
 | 2 | /***********************************************************************
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 |   $Id: databar.c 1203 2008-09-13 06:46:02Z jbs $
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 |   databar applet
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 |   Copyright (c) 1993-98 M. Kimes
 | 
|---|
| [1082] | 9 |   Copyright (c) 2005, 2008 Steven H. Levine
 | 
|---|
| [273] | 10 | 
 | 
|---|
 | 11 |   Oct 15 21:42:56 2002 967 ______ databar.c
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 |   15 Oct 02 SHL Baseline
 | 
|---|
 | 14 |   07 Dec 05 SHL Avoid warnings
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | ***********************************************************************/
 | 
|---|
 | 17 | 
 | 
|---|
| [907] | 18 | #include <string.h>
 | 
|---|
 | 19 | 
 | 
|---|
| [2] | 20 | #define INCL_DOS
 | 
|---|
 | 21 | #define INCL_WIN
 | 
|---|
| [907] | 22 | #define INCL_LONGLONG
 | 
|---|
| [2] | 23 | 
 | 
|---|
| [1176] | 24 | #include "dll\fm3dll.h"
 | 
|---|
| [1203] | 25 | #include "dll\notebook.h"                       // Data declaration(s)
 | 
|---|
 | 26 | #include "dll\notebook.h"               // Data declaration(s)
 | 
|---|
| [273] | 27 | #include "dll\datamin.h"
 | 
|---|
| [2] | 28 | #include "dll\fm3dlg.h"
 | 
|---|
| [1176] | 29 | #include "dll\init.h"                   // InitFM3DLL
 | 
|---|
| [2] | 30 | 
 | 
|---|
| [907] | 31 | #ifdef NEVER                            // 05 Jan 08 SHL fixme to be gone?
 | 
|---|
| [2] | 32 | 
 | 
|---|
| [551] | 33 | VOID APIENTRY deinit(ULONG why)
 | 
|---|
 | 34 | {
 | 
|---|
 | 35 |   if (fmprof)
 | 
|---|
| [2] | 36 |     PrfCloseProfile(fmprof);
 | 
|---|
| [551] | 37 |   fmprof = (HINI) 0;
 | 
|---|
| [2] | 38 | 
 | 
|---|
 | 39 |   flushall();
 | 
|---|
 | 40 | 
 | 
|---|
| [551] | 41 |   DosExitList(EXLST_REMOVE, deinit);
 | 
|---|
| [2] | 42 | }
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | #endif
 | 
|---|
 | 45 | 
 | 
|---|
| [551] | 46 | int main(int argc, char *argv[])
 | 
|---|
 | 47 | {
 | 
|---|
 | 48 |   HAB hab;
 | 
|---|
 | 49 |   HMQ hmq;
 | 
|---|
 | 50 |   QMSG qmsg;
 | 
|---|
| [2] | 51 | 
 | 
|---|
| [551] | 52 |   strcpy(appname, "DATABAR");
 | 
|---|
| [273] | 53 | 
 | 
|---|
 | 54 | # ifdef NEVER
 | 
|---|
| [551] | 55 |   DosExitList(EXLST_ADD, deinit);
 | 
|---|
| [273] | 56 | # endif
 | 
|---|
 | 57 | 
 | 
|---|
| [2] | 58 |   hab = WinInitialize(0);
 | 
|---|
| [551] | 59 |   if (hab) {
 | 
|---|
 | 60 |     hmq = WinCreateMsgQueue(hab, 384);
 | 
|---|
 | 61 |     if (hmq) {
 | 
|---|
 | 62 |       if (InitFM3DLL(hab, argc, argv)) {
 | 
|---|
 | 63 |         if (CreateDataBar(HWND_DESKTOP, 0)) {
 | 
|---|
 | 64 |           while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
 | 
|---|
 | 65 |             WinDispatchMsg(hab, &qmsg);
 | 
|---|
 | 66 |         }
 | 
|---|
| [2] | 67 |       }
 | 
|---|
 | 68 |       WinDestroyMsgQueue(hmq);
 | 
|---|
 | 69 |     }
 | 
|---|
 | 70 |     WinTerminate(hab);
 | 
|---|
 | 71 |   }
 | 
|---|
 | 72 |   return 0;
 | 
|---|
 | 73 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.