|
#1
|
|||
|
|||
generating C++ executable for Windows/ GUI question
I wrote a C++ program which I compiled on my Mac via gcc. It has a simple command-line interface. Is there an easy way for me to compile on my Windows PC and send the executable to others?
Also, I'd like to add a GUI for the program -- nothing fancy, just some clickable buttons and a window for text output. Does anyone have somewhere I can look to get started? Thanks! |
#2
|
|||
|
|||
Re: generating C++ executable for Windows/ GUI question
A Mac command line?
Oh wait thats right, Macs are running a PC operating system now. I forgot. [img]/images/graemlins/tongue.gif[/img] I'm sure the same GCC compiler is available for Windows and very little if anything would have to be done to make it work on a PC as for converting it to a GUI? You can try out http://msdn.microsoft.com/vstudio/express and see how it works out for you. Definitely a transition in making code changes and how it operates. No more stdout and stdin! |
#4
|
|||
|
|||
Re: generating C++ executable for Windows/ GUI question
wxWidgets is pretty nice when it comes to windows GUIs. I think QT is a little easier and more powerful, but it isn't free for commercial use like wxWidgets. However if your program is non-commercial, I believe QT allows free usage as long as you license the code as GPL.
However if the code isn't so complex, rewriting it in Java will make it much easier to create a workable GUI (cross-platform too!). And as nuclear500 alluded to, GUI programming is way more complex than just command line stuff until you get the hang of it. |
#5
|
|||
|
|||
Re: generating C++ executable for Windows/ GUI question
[ QUOTE ]
wxWidgets is pretty nice when it comes to windows GUIs. I think QT is a little easier and more powerful, but it isn't free for commercial use like wxWidgets. However if your program is non-commercial, I believe QT allows free usage as long as you license the code as GPL. However if the code isn't so complex, rewriting it in Java will make it much easier to create a workable GUI (cross-platform too!). And as nuclear500 alluded to, GUI programming is way more complex than just command line stuff until you get the hang of it. [/ QUOTE ] Personally, though I've never done much Java programming, I think using the wxWidgets bindings in Python is by far the easiest way to create workable GUIs. There are QT bindings as well. |
#6
|
|||
|
|||
Re: generating C++ executable for Windows/ GUI question
I have never used python but I hear it is good stuff, and I have seen sample wxWidgets code using python and it looks really nice. This sounds like a good idea.
Java GUI programming though is pretty good too, provided you don't mind Java. |
|
|