|
Last change
on this file since 1119 was 1082, checked in by Gregg Young, 17 years ago |
|
Changes so FM2 will use TMP/TEMP directory for all temp files; Replaced save_dir2 with global variable so BldFullPathName could easily replace code that performed the same function; Added #ifdef FORTIFY to free_ function that are only used when fortified.
|
-
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 1082 2008-07-19 22:37:36Z gyoung $
|
|---|
| 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 |
|
|---|
| [273] | 24 | #include "dll\datamin.h"
|
|---|
| [2] | 25 | #include "dll\fm3dlg.h"
|
|---|
| [907] | 26 | #include "dll\fm3dll.h"
|
|---|
| [2] | 27 |
|
|---|
| [907] | 28 | #ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
|
|---|
| [2] | 29 |
|
|---|
| [551] | 30 | VOID APIENTRY deinit(ULONG why)
|
|---|
| 31 | {
|
|---|
| 32 | if (fmprof)
|
|---|
| [2] | 33 | PrfCloseProfile(fmprof);
|
|---|
| [551] | 34 | fmprof = (HINI) 0;
|
|---|
| [2] | 35 |
|
|---|
| 36 | flushall();
|
|---|
| 37 |
|
|---|
| [551] | 38 | DosExitList(EXLST_REMOVE, deinit);
|
|---|
| [2] | 39 | }
|
|---|
| 40 |
|
|---|
| 41 | #endif
|
|---|
| 42 |
|
|---|
| [551] | 43 | int main(int argc, char *argv[])
|
|---|
| 44 | {
|
|---|
| 45 | HAB hab;
|
|---|
| 46 | HMQ hmq;
|
|---|
| 47 | QMSG qmsg;
|
|---|
| [2] | 48 |
|
|---|
| [551] | 49 | strcpy(appname, "DATABAR");
|
|---|
| [273] | 50 |
|
|---|
| 51 | # ifdef NEVER
|
|---|
| [551] | 52 | DosExitList(EXLST_ADD, deinit);
|
|---|
| [273] | 53 | # endif
|
|---|
| 54 |
|
|---|
| [2] | 55 | hab = WinInitialize(0);
|
|---|
| [551] | 56 | if (hab) {
|
|---|
| 57 | hmq = WinCreateMsgQueue(hab, 384);
|
|---|
| 58 | if (hmq) {
|
|---|
| 59 | if (InitFM3DLL(hab, argc, argv)) {
|
|---|
| 60 | if (CreateDataBar(HWND_DESKTOP, 0)) {
|
|---|
| 61 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
|---|
| 62 | WinDispatchMsg(hab, &qmsg);
|
|---|
| 63 | }
|
|---|
| [2] | 64 | }
|
|---|
| 65 | WinDestroyMsgQueue(hmq);
|
|---|
| 66 | }
|
|---|
| 67 | WinTerminate(hab);
|
|---|
| 68 | }
|
|---|
| 69 | return 0;
|
|---|
| 70 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.