Last change
on this file since 1215 was 1215, checked in by John Small, 17 years ago |
Ticket 187: Move data declarations/definitions out of fm3dll.h
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.1 KB
|
Rev | Line | |
---|
[907] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: ini.c 1215 2008-09-13 06:54:03Z jbs $
|
---|
| 5 |
|
---|
| 6 | Ini view/edit applet
|
---|
| 7 |
|
---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2008 Steven H.Levine
|
---|
| 10 |
|
---|
| 11 | 05 Jan 08 SHL Sync
|
---|
| 12 |
|
---|
| 13 | ***********************************************************************/
|
---|
| 14 |
|
---|
[2] | 15 | #define INCL_DOS
|
---|
| 16 | #define INCL_WIN
|
---|
| 17 |
|
---|
| 18 | #include "dll\fm3dll.h"
|
---|
[1215] | 19 | #include "dll\notebook.h" // Data declaration(s)
|
---|
[1176] | 20 | #include "dll\init.h" // InitFM3DLL
|
---|
[1155] | 21 | #include "dll\inis.h" // StartIniEditor
|
---|
[2] | 22 |
|
---|
[551] | 23 | int main(int argc, char *argv[])
|
---|
| 24 | {
|
---|
| 25 | HAB hab;
|
---|
| 26 | HMQ hmq;
|
---|
| 27 | QMSG qmsg;
|
---|
| 28 | HWND hwndFrame;
|
---|
[2] | 29 |
|
---|
| 30 | DosError(FERR_DISABLEHARDERR);
|
---|
| 31 | hab = WinInitialize(0);
|
---|
[551] | 32 | if (hab) {
|
---|
| 33 | hmq = WinCreateMsgQueue(hab, 512);
|
---|
| 34 | if (hmq) {
|
---|
| 35 | if (InitFM3DLL(hab, argc, argv) &&
|
---|
[1155] | 36 | ((hwndFrame =
|
---|
| 37 | StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) {
|
---|
| 38 | if (hwndHelp)
|
---|
| 39 | WinAssociateHelpInstance(hwndHelp, hwndFrame);
|
---|
| 40 | while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))
|
---|
| 41 | WinDispatchMsg(hab, &qmsg);
|
---|
[2] | 42 | }
|
---|
| 43 | DosSleep(125L);
|
---|
| 44 | WinDestroyMsgQueue(hmq);
|
---|
| 45 | }
|
---|
| 46 | WinTerminate(hab);
|
---|
| 47 | }
|
---|
| 48 | return 0;
|
---|
| 49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.