Is it possible to convert an existing visual studio project file that creates a Win32 application into a project file that creates a Win32 "Console" application? If so, how is this done? I've googled and found plenty of people doing the opposite, but none this way.
Windows application A Win32 program is an executable application (EXE) written in C or C++, using calls to the Win32 API to create a graphical user interface. You cannot add MFC or ATL support to a Windows application.
Right click your project in the solution explorer and select properties. Then, under the "Application" tab change the "Output type" of your project from “Console Application” to “Windows Application.” Save this answer.
Open Visual Studio, and choose Create a new project in the Start window. In the Create a new project window, select All languages, and then choose C# from the dropdown list. Choose Windows from the All platforms list, and choose Console from the All project types list.
At the linker level, the distinction is made with the /SUBSYSTEM
switch to the linker. However, since there is so much other stuff built up around the type of project in Visual Studio, sometimes it's easiest to create a new console mode project, and add the existing code to the new project.
I am not aware of an automated way of that. I think you can change all the project settings to make that switch. But it would be tedious. I believe it would be simpler to just create a new project and add the source files to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With