Window- and Console-Friendly Win32 Applications

A few of the projects require that the application can be run both as a Windows GUI and a Console application. So far the apps have been Windows Subsystem and when run as a console, by executing with a /c, they simply do not display a form (I’m a C# developer in case you didn’t know). I wanted a way to write to the console though so that the app could display progress while running. I did a google search for this and found the best article at Pursuit of Simplicity here. At first there was a problem in that DOS does not wait for Windows Subsystem apps to complete. A few comments later and Pursuit of Simplicity posted the answer, use DOS’s start command; start can be told to wait with /wait. Excellent!

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s