|
Last change
on this file since 1285 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
|
| Line | |
|---|
| 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 |
|
|---|
| 15 | #define INCL_DOS
|
|---|
| 16 | #define INCL_WIN
|
|---|
| 17 |
|
|---|
| 18 | #include "dll\fm3dll.h"
|
|---|
| 19 | #include "dll\notebook.h" // Data declaration(s)
|
|---|
| 20 | #include "dll\init.h" // InitFM3DLL
|
|---|
| 21 | #include "dll\inis.h" // StartIniEditor
|
|---|
| 22 |
|
|---|
| 23 | int main(int argc, char *argv[])
|
|---|
| 24 | {
|
|---|
| 25 | HAB hab;
|
|---|
| 26 | HMQ hmq;
|
|---|
| 27 | QMSG qmsg;
|
|---|
| 28 | HWND hwndFrame;
|
|---|
| 29 |
|
|---|
| 30 | DosError(FERR_DISABLEHARDERR);
|
|---|
| 31 | hab = WinInitialize(0);
|
|---|
| 32 | if (hab) {
|
|---|
| 33 | hmq = WinCreateMsgQueue(hab, 512);
|
|---|
| 34 | if (hmq) {
|
|---|
| 35 | if (InitFM3DLL(hab, argc, argv) &&
|
|---|
| 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);
|
|---|
| 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.