|
Last change
on this file since 1003 was 977, checked in by sandervl, 26 years ago |
|
Creation of source files with entrypoints for Win32 apps compiled in OS/2
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /* $Id: odinexe.cpp,v 1.2 1999-09-18 17:46:47 sandervl Exp $ */
|
|---|
| 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 | #include <exceptions.h>
|
|---|
| 15 |
|
|---|
| 16 | //Win32 app entrypoint:
|
|---|
| 17 | int WIN32API WinMain(HINSTANCE hInstance,
|
|---|
| 18 | HINSTANCE hPrevInstance,
|
|---|
| 19 | LPSTR lpCmdLine,
|
|---|
| 20 | int nCmdShow);
|
|---|
| 21 |
|
|---|
| 22 | extern "C" {
|
|---|
| 23 | //Win32 resource table (produced by wrc)
|
|---|
| 24 | extern DWORD _Resource_PEResTab;
|
|---|
| 25 | }
|
|---|
| 26 | //******************************************************************************
|
|---|
| 27 | //******************************************************************************
|
|---|
| 28 | int main(int argc, char *argv[])
|
|---|
| 29 | {
|
|---|
| 30 | WINEXCEPTION_FRAME exceptFrame;
|
|---|
| 31 |
|
|---|
| 32 | OS2SetExceptionHandler(&exceptFrame);
|
|---|
| 33 | RegisterLxExe(WinMain, (PVOID)&_Resource_PEResTab);
|
|---|
| 34 | OS2UnsetExceptionHandler(&exceptFrame);
|
|---|
| 35 | }
|
|---|
| 36 | //******************************************************************************
|
|---|
| 37 | //******************************************************************************
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.