Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d666eae

Browse files
committed
Adding a new project: pythonw, or WinMain.c, containing a main program
that doesn't have a console window attached. stdout/stderr are lost. This is handy though for things like grail.
1 parent 736fe5e commit d666eae

3 files changed

Lines changed: 131 additions & 4 deletions

File tree

PC/WinMain.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* Minimal main program -- everything is loaded from the library */
2+
3+
#include <windows.h>
4+
5+
extern int Py_Main();
6+
7+
int WINAPI WinMain(
8+
HINSTANCE hInstance, // handle to current instance
9+
HINSTANCE hPrevInstance, // handle to previous instance
10+
LPSTR lpCmdLine, // pointer to command line
11+
int nCmdShow // show state of window
12+
)
13+
{
14+
return Py_Main(__argc, __argv);
15+
}

PC/vc5x/pcbuild.dsw

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 5.00
33

44
###############################################################################
55

6-
Project: "_tkinter"=.\_tkinter.dsp - Package Owner=<4>
6+
Project: "_tkinter"=".\_tkinter.dsp" - Package Owner=<4>
77

88
Package=<5>
99
{{{
@@ -15,7 +15,7 @@ Package=<4>
1515

1616
###############################################################################
1717

18-
Project: "parser"=.\parser.dsp - Package Owner=<4>
18+
Project: "parser"=".\parser.dsp" - Package Owner=<4>
1919

2020
Package=<5>
2121
{{{
@@ -27,7 +27,7 @@ Package=<4>
2727

2828
###############################################################################
2929

30-
Project: "python"=.\python.dsp - Package Owner=<4>
30+
Project: "python"=".\python.dsp" - Package Owner=<4>
3131

3232
Package=<5>
3333
{{{
@@ -39,7 +39,19 @@ Package=<4>
3939

4040
###############################################################################
4141

42-
Project: "python15"=.\python15.dsp - Package Owner=<4>
42+
Project: "python15"=".\python15.dsp" - Package Owner=<4>
43+
44+
Package=<5>
45+
{{{
46+
}}}
47+
48+
Package=<4>
49+
{{{
50+
}}}
51+
52+
###############################################################################
53+
54+
Project: "pythonw"=".\pythonw.dsp" - Package Owner=<4>
4355

4456
Package=<5>
4557
{{{

PC/vc5x/pythonw.dsp

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)