Thread: How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ?

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    13

    Question How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ?

    Good day !

    I have write a C++ program which implement class to run some funcitons in DOS and runs well.

    But, how can I transfer the class if I wish to convert it into a Win32 application because I wish to implement GUI.

    I tried to copy the whole class codes and paste it into the Win32 application source code but failed.

    I understand that I cant used some conventional funcitons such as printf and the class just contains function that return integer values only.

    Do I have to convert the class file into a header file and import it from the Win32 applicaiton source code and implement the functions there ?

    Thanks a lot !

  2. #2
    Registered User Esss's Avatar
    Join Date
    Aug 2001
    Posts
    133
    If you don't use the console functions (printf, scanf, gets, getch, etc.) your class will port as is. Otherwise, you'll need to reimplement your I/O using Win32 GUI functions.
    Ess
    Like a rat in a maze who says,
    "Watch me choose my own direction"
    Are you under the illusion
    The path is winding your way?
    - Rush

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Run dos program invisibly?
    By chico1st in forum Windows Programming
    Replies: 2
    Last Post: 01-07-2009, 10:07 AM
  2. Convert console sorting program to GUI?
    By Djanvk in forum C++ Programming
    Replies: 1
    Last Post: 09-19-2008, 05:48 PM
  3. Painting with Tex on a Win32 Application
    By webzest in forum C++ Programming
    Replies: 5
    Last Post: 08-16-2004, 03:04 PM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM