Last change
on this file since 536 was 273, checked in by root, 20 years ago |
Avoid warnings
|
-
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 273 2005-12-08 07:35:01Z root $
|
---|
| 5 |
|
---|
| 6 | databar applet
|
---|
| 7 |
|
---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2005 Steven H. Levine
|
---|
| 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 |
|
---|
[2] | 18 | #define INCL_DOS
|
---|
| 19 | #define INCL_WIN
|
---|
[273] | 20 | #include <os2.h>
|
---|
[2] | 21 |
|
---|
| 22 | #include <stdarg.h>
|
---|
| 23 | #include <stdio.h>
|
---|
| 24 | #include <stdlib.h>
|
---|
| 25 | #include <string.h>
|
---|
| 26 | #include <ctype.h>
|
---|
[273] | 27 |
|
---|
[2] | 28 | #include "dll\fm3dll.h"
|
---|
[273] | 29 | #include "dll\datamin.h"
|
---|
[2] | 30 | #include "dll\fm3dlg.h"
|
---|
| 31 |
|
---|
| 32 | #ifdef NEVER
|
---|
| 33 |
|
---|
| 34 | VOID APIENTRY deinit (ULONG why) {
|
---|
| 35 |
|
---|
| 36 | if(fmprof)
|
---|
| 37 | PrfCloseProfile(fmprof);
|
---|
| 38 | fmprof = (HINI)0;
|
---|
| 39 |
|
---|
| 40 | flushall();
|
---|
| 41 |
|
---|
| 42 | DosExitList(EXLST_REMOVE,deinit);
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | #endif
|
---|
| 46 |
|
---|
| 47 | int main (int argc,char *argv[]) {
|
---|
| 48 |
|
---|
| 49 | HAB hab;
|
---|
| 50 | HMQ hmq;
|
---|
| 51 | QMSG qmsg;
|
---|
| 52 |
|
---|
| 53 | strcpy(appname,"DATABAR");
|
---|
[273] | 54 |
|
---|
| 55 | # ifdef NEVER
|
---|
[2] | 56 | DosExitList(EXLST_ADD,deinit);
|
---|
[273] | 57 | # endif
|
---|
| 58 |
|
---|
[2] | 59 | hab = WinInitialize(0);
|
---|
| 60 | if(hab) {
|
---|
| 61 | hmq = WinCreateMsgQueue(hab,384);
|
---|
| 62 | if(hmq) {
|
---|
| 63 | if(InitFM3DLL(hab,argc,argv)) {
|
---|
| 64 | if(CreateDataBar(HWND_DESKTOP,0)) {
|
---|
| 65 | while(WinGetMsg(hab,&qmsg,(HWND)0,0,0))
|
---|
| 66 | WinDispatchMsg(hab,&qmsg);
|
---|
| 67 | }
|
---|
| 68 | }
|
---|
| 69 | WinDestroyMsgQueue(hmq);
|
---|
| 70 | }
|
---|
| 71 | WinTerminate(hab);
|
---|
| 72 | }
|
---|
| 73 | return 0;
|
---|
| 74 | }
|
---|
| 75 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.