Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2007, 02:32 PM
felson felson is offline
Senior Member
 
Join Date: Jan 2003
Posts: 2,177
Default 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!
Reply With Quote
  #2  
Old 07-25-2007, 05:27 PM
nuclear500 nuclear500 is offline
Senior Member
 
Join Date: Aug 2004
Location: Madison, WI
Posts: 1,065
Default 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!
Reply With Quote
  #3  
Old 07-25-2007, 11:19 PM
Neuge Neuge is offline
Senior Member
 
Join Date: Jul 2004
Posts: 784
Default Re: generating C++ executable for Windows/ GUI question

For GUIs, wxWidgets. It's a C++ class library that really makes GUI programming easy and portable.
Reply With Quote
  #4  
Old 07-26-2007, 03:59 AM
pokergrader pokergrader is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,792
Default 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.
Reply With Quote
  #5  
Old 07-26-2007, 04:23 AM
Neuge Neuge is offline
Senior Member
 
Join Date: Jul 2004
Posts: 784
Default 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.
Reply With Quote
  #6  
Old 07-26-2007, 08:12 PM
pokergrader pokergrader is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,792
Default 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.
Reply With Quote
  #7  
Old 07-26-2007, 08:25 PM
felson felson is offline
Senior Member
 
Join Date: Jan 2003
Posts: 2,177
Default Re: generating C++ executable for Windows/ GUI question

Thanks for the suggestions, everyone. I think I'm going to learn Java!
Reply With Quote
  #8  
Old 07-26-2007, 10:20 PM
LeapFrog LeapFrog is offline
Senior Member
 
Join Date: Oct 2006
Location: Mystery time!
Posts: 1,173
Default Re: generating C++ executable for Windows/ GUI question

[ QUOTE ]
Thanks for the suggestions, everyone. I think I'm going to learn Java!

[/ QUOTE ]

Check out the Eclipse ide
Reply With Quote
  #9  
Old 07-27-2007, 03:44 AM
Neuge Neuge is offline
Senior Member
 
Join Date: Jul 2004
Posts: 784
Default Re: generating C++ executable for Windows/ GUI question

[ QUOTE ]
Thanks for the suggestions, everyone. I think I'm going to learn Java!

[/ QUOTE ]
I strongly suggest you take up Python, something I would recommend to anyone just taking up a new scripting language. It's a much easier and cleaner language than Java.

You can get the Enthought edition with the best editors and most to all of the popular packages in one install (though a lot are mathematical tools).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.