Guido van Rossum | 639ccae | 1998-08-08 20:00:49 +0000 | [diff] [blame] | 1 | /* Minimal main program -- everything is loaded from the library. */ |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 2 | |
| 3 | #include <windows.h> |
Guido van Rossum | 67ab672 | 1998-08-08 19:58:59 +0000 | [diff] [blame] | 4 | #include "Python.h" |
Guido van Rossum | d666eae | 1997-12-10 05:50:18 +0000 | [diff] [blame] | 5 | |
| 6 | extern int Py_Main(); |
| 7 | |
| 8 | int WINAPI WinMain( |
| 9 | HINSTANCE hInstance, // handle to current instance |
| 10 | HINSTANCE hPrevInstance, // handle to previous instance |
| 11 | LPSTR lpCmdLine, // pointer to command line |
| 12 | int nCmdShow // show state of window |
| 13 | ) |
| 14 | { |
| 15 | return Py_Main(__argc, __argv); |
| 16 | } |