Last change
on this file since 1176 was 1176, checked in by John Small, 17 years ago |
Ticket 187: Draft 2: Move remaining function declarations
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.2 KB
|
Rev | Line | |
---|
[273] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: databar.c 1176 2008-09-10 21:52:46Z 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"
|
---|
[273] | 25 | #include "dll\datamin.h"
|
---|
[2] | 26 | #include "dll\fm3dlg.h"
|
---|
[1176] | 27 | #include "dll\init.h" // InitFM3DLL
|
---|
[2] | 28 |
|
---|
[907] | 29 | #ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
|
---|
[2] | 30 |
|
---|
[551] | 31 | VOID APIENTRY deinit(ULONG why)
|
---|
| 32 | {
|
---|
| 33 | if (fmprof)
|
---|
[2] | 34 | PrfCloseProfile(fmprof);
|
---|
[551] | 35 | fmprof = (HINI) 0;
|
---|
[2] | 36 |
|
---|
| 37 | flushall();
|
---|
| 38 |
|
---|
[551] | 39 | DosExitList(EXLST_REMOVE, deinit);
|
---|
[2] | 40 | }
|
---|
| 41 |
|
---|
| 42 | #endif
|
---|
| 43 |
|
---|
[551] | 44 | int main(int argc, char *argv[])
|
---|
| 45 | {
|
---|
| 46 | HAB hab;
|
---|
| 47 | HMQ hmq;
|
---|
| 48 | QMSG qmsg;
|
---|
[2] | 49 |
|
---|
[551] | 50 | strcpy(appname, "DATABAR");
|
---|
[273] | 51 |
|
---|
| 52 | # ifdef NEVER
|
---|
[551] | 53 | DosExitList(EXLST_ADD, deinit);
|
---|
[273] | 54 | # endif
|
---|
| 55 |
|
---|
[2] | 56 | hab = WinInitialize(0);
|
---|
[551] | 57 | if (hab) {
|
---|
| 58 | hmq = WinCreateMsgQueue(hab, 384);
|
---|
| 59 | if (hmq) {
|
---|
| 60 | if (InitFM3DLL(hab, argc, argv)) {
|
---|
| 61 | if (CreateDataBar(HWND_DESKTOP, 0)) {
|
---|
| 62 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
---|
| 63 | WinDispatchMsg(hab, &qmsg);
|
---|
| 64 | }
|
---|
[2] | 65 | }
|
---|
| 66 | WinDestroyMsgQueue(hmq);
|
---|
| 67 | }
|
---|
| 68 | WinTerminate(hab);
|
---|
| 69 | }
|
---|
| 70 | return 0;
|
---|
| 71 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.