Maker Pro
Maker Pro

GUI Programming

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
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 ?
 

CocaCola

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

Harald Kapp

Moderator
Moderator
Nov 17, 2011
12,613
Joined
Nov 17, 2011
Messages
12,613
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:

GreenGiant

Feb 9, 2012
842
Joined
Feb 9, 2012
Messages
842
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
 

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
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

I would like to learn visual C++ since I know C++ language :)
 

GreenGiant

Feb 9, 2012
842
Joined
Feb 9, 2012
Messages
842
I would like to learn visual C++ since I know C++ language :)

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
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,505
Joined
Jan 21, 2010
Messages
25,505
C++ it just gives you a message that says "There is an error, fix it"

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.
 

GreenGiant

Feb 9, 2012
842
Joined
Feb 9, 2012
Messages
842
We used both 2008 and 2010, and both did the same thing with errors in C++

oh well
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,505
Joined
Jan 21, 2010
Messages
25,505
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++"
 

dpenelob

Mar 27, 2013
15
Joined
Mar 27, 2013
Messages
15
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...
 
Top