Thread: Adding interface to Win32 console application

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    10

    Adding interface to Win32 console application

    Dear all,

    I have built a win32 console application using visual studio 6.0
    Now I would like to add interface (GUI) to the application using visual studio 2008 BETA.

    I would like to receive your comments what is the best way to implement this
    Should I covert the application to dll and than adds an interface to it or there is a better way to handle this.

    Looking forward to recevie your opinion.

    Moti

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well what does your existing "console" UI consist of at the moment?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    10

    Console Applicaion

    The Applicaion receives input from user (i.e from keyboard) and process some task were finnaly an output is presented. Actually the menu selection like:

    1. Order Screen
    2. Report Screen
    3. Quit

    Is done by console. I would like to convert it to GUI Mode.
    moti

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I would say that changing the user-interface shouldn't be overly complex, assuming that your UI and the actual application code is well separated.

    It is probably easier to create a GUI project, and then copy the files from the console app into the new GUI project, than to try to change the existing project from console to GUI. Just copy the relevant files into the new project directory, and use the "Add existing file" to add the files to the project itself.

    Obviously, you'll have to write some code to deal with menus, dialog boxes, window (re-)drawing, and so on. If you've never done any Windows programming, this will be a bit of a challenge... It's probably a good idea to get a Windows Programming book - those by Charles Petzold are highly recommended by others.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    10

    another quetion

    Thanks a lot for the pervious answer it was very helpful
    Small Question:

    How do you change the tab page control on a form which is consisted from 3 tabs.
    I would like to push a button on one page tab1 and move to the other one: Tabpage2

    Thanks for your assistance.
    Moti

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Moved to the Windows programming board.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple snmp console application.
    By csteinsv in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 05:03 PM
  2. Win32 console, xp,nt,2000 only?
    By Ash1981 in forum C Programming
    Replies: 8
    Last Post: 01-01-2006, 03:09 AM
  3. Console Application
    By Mont_Blanc in forum C++ Programming
    Replies: 3
    Last Post: 04-17-2004, 03:07 AM
  4. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 10:12 AM