Thread: How to GUI...

  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,708
    Coding a GUI program (especially for the uninitiated) can be quite an overwhelming experience. I say stick with the console for now.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  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
    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, 04:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 04:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM