Connect with us

GUI Programming

Discussion in 'Microcontrollers, Programming and IoT' started by vick5821, Sep 6, 2012.

  1. vick5821

    vick5821

    700
    0
    Jan 22, 2012
    Hey, what knowledge do I need to start to create a GUI program ? For example writing a simple program that I can control my LED from my ladtop ?
     
  2. CocaCola

    CocaCola

    3,635
    4
    Apr 7, 2012
    VERY LITTLE, for basic stuff like lighting an LED on say a parallel port, if you are using a decent compiler...
     
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    9,137
    1,846
    Nov 17, 2011
    I suggest you start by learning how to write a GUI based program at all. A good starting point is the free Visual Studio Express. Choose the language you prefer (basic, C++, C#). Learn how to code a program that interacts with you without connecting to your µC via USB.
    Once you have manged the basic skills of GUI programming you can tackle the task of communicating with the µC.
    This two-tiered proceeding alllows you to tackle the different aspects (GUI programming, communicating with µC) one after the other.

    It may be a good idea to buy a USB experimental kit (like e.g. this). Make sure the kit comes with instructions and possibly sample code.
     
    Last edited: Sep 6, 2012
  4. vick5821

    vick5821

    700
    0
    Jan 22, 2012
    What the kit does ?
     
  5. Harald Kapp

    Harald Kapp Moderator Moderator

    9,137
    1,846
    Nov 17, 2011
    Digital IO via USB connected to PC
     
  6. GreenGiant

    GreenGiant

    830
    5
    Feb 9, 2012
    To make a usable GUI I would recommend either VB (Visual Basic) or Labview

    Of the 2 VB would be cheaper as you can get it for free, labview is a little more difficult to get for free, plus to interface with something like that it is going to take some time and will probably be a little more difficult in the beginning
     
  7. vick5821

    vick5821

    700
    0
    Jan 22, 2012
    I would like to learn visual C++ since I know C++ language :)
     
  8. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,175
    2,690
    Jan 21, 2010
  9. GreenGiant

    GreenGiant

    830
    5
    Feb 9, 2012
    Fair enough

    A trick for you, if you get visual studio set it up so that the default is visual basic, the debugger for VB has line referencing where the one for C++ does not, so when there is an error in C++ and the debugger is set for C++ it just gives you a message that says "There is an error, fix it" where the VB debugger says "There is an error, fix it" and you can double click on it and it will bring you right to the line that the error is on
    I discovered that in my C++ class when I used my laptop which I had previously used for VB, I was able to debug programs MUCH faster and easier than anyone else in class, even the professor
     
  10. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,175
    2,690
    Jan 21, 2010
    I use VS2010 at the moment and when it locates an error in my C++ code I can double click on the error and it positions me at the point in the code where the error was detected.
     
  11. GreenGiant

    GreenGiant

    830
    5
    Feb 9, 2012
    We used both 2008 and 2010, and both did the same thing with errors in C++

    oh well
     
  12. Harald Kapp

    Harald Kapp Moderator Moderator

    9,137
    1,846
    Nov 17, 2011
  13. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,175
    2,690
    Jan 21, 2010
    Visual C++ is just C++ made by a particular company (in this case Microsoft).

    Learning "visual C++" really means learning to use the environment and the debugging tools, and microsoft's non-standard C++ bits, but that is not actually learning C++ (although it may be valuable).

    I think the OP wants to start learning C++, and for that they can use some version of Visual Studio that contains a C++ compiler. Microsoft call that combination "Visual C++"
     
  14. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,175
    2,690
    Jan 21, 2010
    Which errors? Compiler errors, or errors at runtime?
     
  15. dpenelob

    dpenelob

    15
    0
    Mar 27, 2013
    If you are on Linux, you can use the Qt toolkit and some sort of kernel driver
    that allows you to control you LED or whatever you need...
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-