Patrick Rutkowski added the comment:
I removed my custom built Python and installed the one provided by the
python-3.6.2-amd64.exe installer instead.
The Win32 Command Line application now works, and shows the message box. The
Win32 GUI Application still fails to work, the output is just
Patrick Rutkowski added the comment:
Just for kicks I tried the same Py_Main() code from a Win32 console application
(instead of from a GUI application). The C code this time was
#include
int wmain(int argc, wchar_t** argv) {
return Py_Main(argc, argv);
}
The resulting error message
New submission from Patrick Rutkowski:
Install Visual Studio 2017
Download and unpack Python-3.6.2.tgz
Open a Visual Studio command prompt
Browse to Python-3.6.2\PCBuild
Run build.bat -p x64 -c Release
Run build.bat -p x64 -c Debug
Add the PCbuild\amd64 directory to your PATH
Create a new