LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2005, 11:31 AM   #1
lramos85
Member
 
Registered: Sep 2003
Location: Riverside, Ca
Distribution: Gentoo, FC3
Posts: 125

Rep: Reputation: 15
Command to GUI


Ok, I have a C++ Program (windows) and I want to do it GUI, I have all the code (alot of code) and I want to use Visual C++ to make it GUI. Is it difficult to do this or should I just change my code to Visual Basic. Thanks.
 
Old 01-04-2005, 01:19 PM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Just compiling your code with VC++ isn't going to automatically give it a GUI. You don't say what version of VC++ you are using, but either way, you'll have to write your GUI portion of the code, and somehow plug in the existing code into it. The difficulty level of that really depends on how your current app is coded, and how you want to change it.

If you are using VC++ .Net 2003, there is pretty good support for building GUIs using the .Net framework's Windowing forms... If you are using an older version of VC++ (6.0, or an earlier .Net version), then you will probably find it a bit easier to use MFC. Or, you could just go directly to the Win32 API...

I wouldn't go with VB, though. Especially if it is VB 6...
 
Old 01-04-2005, 07:58 PM   #3
lramos85
Member
 
Registered: Sep 2003
Location: Riverside, Ca
Distribution: Gentoo, FC3
Posts: 125

Original Poster
Rep: Reputation: 15
I have VC++ 6.0, I am doing it in VB because it was much easier, if you could tell me why not to do it in VB I would appreciate it and maybe change it to VC++.
 
Old 01-04-2005, 09:50 PM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Maybe I'm biased, but I have had to use VB 6 at work, and have also used VC++ since version 4.0. Here are some reasons I despise VB 6:
  • It tries to be object-oriented, but doesn't support basic object-oriented concepts like inheritence, virtual functions etc.
  • It uses an apartment threaded model, which basically means only one thread of execution can gain access to your VB functions at any one time.
  • Trying to use the Win32 API functions directly to get a free-threaded models can be done, but is notoriously difficult and easily crashes.
  • Trying to use the Win32 API and other similar C libraries requires you to import each and every function you want to use directly from the DLL. With VC++ you usually have headers and libraries that make it much easier to use.
  • If you have a C++ class library you cannot use it directly in VB.
  • It is very Microsoft specific. Some things for VC++ such as MFC and certain keywords are also Microsoft specific, but it is still C++, so you can take the C++ concepts you learn and apply it to other platforms.
  • This being mainly a Linux oriented forum, I don't think you will find too many people sympathetic towards VB...


Last edited by deiussum; 01-04-2005 at 09:52 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command line and GUI kpachopoulos Linux - Newbie 3 08-22-2004 09:13 AM
Terminal command for GUI command "Remove to trash" GunSkit Linux - General 3 06-29-2004 01:50 PM
boots to command but I need GUI coopns Linux - Newbie 9 05-27-2004 12:34 PM
command to gui tearinox Linux - Newbie 8 01-20-2004 11:21 PM
gui vs. command line sdfjk Linux - Newbie 1 10-05-2002 03:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration