How to GUI...

This is a discussion on How to GUI... within the C++ Programming forums, part of the General Programming Boards category; I am making a program that will need to display the following information: Distance Motor PWM1 Motor PWM2 Motor Speed1 ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    16

    How to GUI...

    I am making a program that will need to display the following information:

    Distance
    Motor PWM1
    Motor PWM2
    Motor Speed1
    Motor Speed2

    The data will be updated every 30ms.

    I will need the capacity to input text, then use the program to decifer the text, then send the text to COM1 using writefile.

    So, do what would be best for displaying the data?

    I am using Console mode at the moment and find it easy to work with, but i am not sure how and if it can do the sort of stuff i need to do.

    Thanks

    - MP

  2. #2
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Depends on what this is for. If its a game, DirectX should work. Otherwise, try WinAPI.
    Do not make direct eye contact with me.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    Coding a GUI program (especially for the uninitiated) can be quite an overwhelming experience. I say stick with the console for now.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  4. #4
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    If you do use a GUI, I'd personally go with a portable library like GTK or Qt instead of WinAPI... They tend to be a bit easier to figure out as well.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  5. #5
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I like the console for non-gaming things. You spend more time coding functionality than prettiness, or trying to force your API to do as it's told.

    I guess I'm just too much into *nix based OS's.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 03:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 03:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 03:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 02:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21