source: trunk/databar.c@ 1082

Last change on this file since 1082 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
Line 
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
9 Copyright (c) 2005, 2008 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
18#include <string.h>
19
20#define INCL_DOS
21#define INCL_WIN
22#define INCL_LONGLONG
23
24#include "dll\datamin.h"
25#include "dll\fm3dlg.h"
26#include "dll\fm3dll.h"
27
28#ifdef NEVER // 05 Jan 08 SHL fixme to be gone?
29
30VOID APIENTRY deinit(ULONG why)
31{
32 if (fmprof)
33 PrfCloseProfile(fmprof);
34 fmprof = (HINI) 0;
35
36 flushall();
37
38 DosExitList(EXLST_REMOVE, deinit);
39}
40
41#endif
42
43int main(int argc, char *argv[])
44{
45 HAB hab;
46 HMQ hmq;
47 QMSG qmsg;
48
49 strcpy(appname, "DATABAR");
50
51# ifdef NEVER
52 DosExitList(EXLST_ADD, deinit);
53# endif
54
55 hab = WinInitialize(0);
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 }
64 }
65 WinDestroyMsgQueue(hmq);
66 }
67 WinTerminate(hab);
68 }
69 return 0;
70}
Note: See TracBrowser for help on using the repository browser.