devxlogo

DOS to Windows Conversion

DOS to Windows Conversion

Question:
How do I convert a DOS file into a Windows program?

Answer:
Unfortunately, not very easily. While DOS programs will run under Windows and you may also want to look into Windows console applications (which act pretty much like a DOS application running under Windows), the structure of a Windows application is very, very different from a DOS application.

DOS applications can use a variety of methods to get input from the user and to display information back. In Windows, you create a window and associated window procedure and your application has a main loop that calls GetMessage() and a few others, which direct various events to your window procedure. This process of only running code in response to the window procedure being called is referred to as event-driven programming.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist