dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
May 23, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date