Rev | Line | |
---|
[1137] | 1 | /* $Id: odinexe.cpp,v 1.3 1999-10-05 14:28:52 sandervl Exp $ */
|
---|
[976] | 2 | /*
|
---|
| 3 | * Win32 Odin32 Application executable entrypoint
|
---|
| 4 | *
|
---|
| 5 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 6 | *
|
---|
| 7 | *
|
---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 9 | *
|
---|
| 10 | */
|
---|
| 11 | #include <os2.h>
|
---|
| 12 | #include <win32type.h>
|
---|
| 13 | #include <odinlx.h>
|
---|
| 14 |
|
---|
| 15 | //Win32 app entrypoint:
|
---|
| 16 | int WIN32API WinMain(HINSTANCE hInstance,
|
---|
| 17 | HINSTANCE hPrevInstance,
|
---|
| 18 | LPSTR lpCmdLine,
|
---|
| 19 | int nCmdShow);
|
---|
| 20 |
|
---|
| 21 | extern "C" {
|
---|
| 22 | //Win32 resource table (produced by wrc)
|
---|
| 23 | extern DWORD _Resource_PEResTab;
|
---|
| 24 | }
|
---|
| 25 | //******************************************************************************
|
---|
| 26 | //******************************************************************************
|
---|
| 27 | int main(int argc, char *argv[])
|
---|
| 28 | {
|
---|
[21999] | 29 | #ifdef ODIN_FORCE_WIN32_TIB
|
---|
| 30 | // Needed for proper __try/__except support:
|
---|
| 31 | ForceWin32TIB();
|
---|
| 32 | #endif
|
---|
[976] | 33 | RegisterLxExe(WinMain, (PVOID)&_Resource_PEResTab);
|
---|
| 34 | }
|
---|
| 35 | //******************************************************************************
|
---|
| 36 | //******************************************************************************
|
---|
Note:
See
TracBrowser
for help on using the repository browser.