| Last change
 on this file since 21705 was             21384, checked in by dmik, 15 years ago | 
        
          | 
SEH: Added some info to Porting.txt and examples to Odin32API.
 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: odinexe.cpp,v 1.3 1999-10-05 14:28:52 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 |  | 
|---|
| 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 | { | 
|---|
| 29 | // Uncomment this to enable proper __try/__except support: | 
|---|
| 30 | //EnableSEH(); | 
|---|
| 31 | RegisterLxExe(WinMain, (PVOID)&_Resource_PEResTab); | 
|---|
| 32 | } | 
|---|
| 33 | //****************************************************************************** | 
|---|
| 34 | //****************************************************************************** | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.