Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 10th, 2008, 10:19 PM   #1
IisNoob
Newbie
 
IisNoob's Avatar
 
Join Date: Mar 2008
Posts: 4
Rep Power: 0 IisNoob is on a distinguished road
Send a message via AIM to IisNoob
Question about GUIs

Are the Interfaces for programs such as AVG, Photoshop, Microsoft Word, Ventrilo etc. written in C++? That seems rather time consuming when you could write them in VB.net and then just implement C++? is that possible? I'd just like to get a better understanding of how programs like that are written. Do they use multiple languages?

EDIT: If theres anyone who is a professional programmer and has AIM or any other messaging service I have 1000's of questions to ask.

Last edited by IisNoob; Apr 10th, 2008 at 10:30 PM.
IisNoob is offline   Reply With Quote
Old Apr 10th, 2008, 10:44 PM   #2
Fall Back Son
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 204
Rep Power: 2 Fall Back Son is on a distinguished road
Re: Question about GUIs

Most of the Windows XP interface is apparently written in C, which is strange to me. And a lot of GUIs in Cpp
Fall Back Son is offline   Reply With Quote
Old Apr 10th, 2008, 10:52 PM   #3
IisNoob
Newbie
 
IisNoob's Avatar
 
Join Date: Mar 2008
Posts: 4
Rep Power: 0 IisNoob is on a distinguished road
Send a message via AIM to IisNoob
Re: Question about GUIs

Quote:
Originally Posted by Fall Back Son View Post
Most of the Windows XP interface is apparently written in C, which is strange to me.
same here whats the advantage of using C?
__________________
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.-Bill Gates
IisNoob is offline   Reply With Quote
Old Apr 10th, 2008, 10:55 PM   #4
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Question about GUIs

win32 api functions are all considered low-level functions and were written in C, and possibly some assembly because it can be called from most programming languages, while C++ can not. Some of the internals may be c++, but none of the win32 api functions are. Microsoft Word project was started before Win95 and was initially all written in C language. I don't know what's happened to it since then but I suspect most of it is still in C.

>>same here whats the advantage of using C?
Its tighter and smaller than c++ programs. When space (RAM) is critical then use C because C compilers produce smaller code and often more efficient. Of course that also depends on the compiler, some compilers produce better code than other compilers. If there is lots of RAM to work with and speed is not all that important then use C++ or some other languages such as VB.
__________________
I Like Ike. Vote for Dwight Eisenhower this November.
--This message brought to you by the the Procrastinators Club Of America.
Ancient Dragon is offline   Reply With Quote
Old Apr 11th, 2008, 12:53 AM   #5
mbd
Programmer
 
Join Date: Nov 2007
Posts: 86
Rep Power: 1 mbd is on a distinguished road
Re: Question about GUIs

if you want to learn about the APIs for those programs and you are working on windows, then you need to learn about COM. i can only really speak from experience about word. it is composed of thousands of COM objects. they can be accessed from any COM compliant language. this means that several languages were probably used to create the interfaces for these programs. i would bet that mostly c++ and vb6 were used in the past, and .net is used more now.
mbd is offline   Reply With Quote
Old Apr 11th, 2008, 5:44 AM   #6
TheAberrant
Newbie
 
Join Date: Jan 2008
Posts: 10
Rep Power: 0 TheAberrant is on a distinguished road
Re: Question about GUIs

A lot of larger applications use pre-built frameworks for their GUIs. For example, I know Adobe uses QT for photoshop, and I hear it's becoming more popular. A lot of open source applications use the GTK (but not sure if that's an actual GUI framework or what...) However, that being said it's always useful to learn and understand the underlying system code, in case you ever find yourself having to debug an error in the framework.

Just my 2 cents
TheAberrant is offline   Reply With Quote
Old Apr 14th, 2008, 4:48 PM   #7
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Re: Question about GUIs

I am pretty sure photoshop proper is *not* written in QT. The only thing I can find about like that a photoshop derived product was written with QT. I think the first version of Photoshop was released even before QT released and it was a Mac only program then.

You will find many older applications written in C++ have there own GUI frameworks they built along with way. The windows office team has there own C++ widget toolkit, and the same goes for Adobe. C++ is/was chosen for its portability and speed, both areas .NET lags C++ in. It can also be hard to interface C++ with managed languages on the .NET platform, so people chose to keep everything in C++.
__________________
Robotics @ Maryland AUV Team - Software Lead
Game_Ender is offline   Reply With Quote
Old Apr 15th, 2008, 5:36 AM   #8
TheAberrant
Newbie
 
Join Date: Jan 2008
Posts: 10
Rep Power: 0 TheAberrant is on a distinguished road
Re: Question about GUIs

Quote:
Originally Posted by Game_Ender View Post
I am pretty sure photoshop proper is *not* written in QT. The only thing I can find about like that a photoshop derived product was written with QT. I think the first version of Photoshop was released even before QT released and it was a Mac only program then.
You're right, my bad. Photoshop Albums was written using QT. I'll try to do proper research before talking out of my arse
TheAberrant is offline   Reply With Quote
Old Apr 16th, 2008, 9:41 AM   #9
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
Re: Question about GUIs

Quote:
Originally Posted by Game_Ender View Post
I am pretty sure photoshop proper is *not* written in QT. The only thing I can find about like that a photoshop derived product was written with QT. I think the first version of Photoshop was released even before QT released and it was a Mac only program then.
That's right. However, many years have passed since then, so a change in API use is necessary, don't you think? I don't know what API the guys at Adobe use, but they better change what they are using fast, because Apple is slowly dropping support to everything except Cocoa, so Adobe may find themselves drowning sooner or later...
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline   Reply With Quote
Old Apr 16th, 2008, 1:07 PM   #10
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Re: Question about GUIs

Quote:
Originally Posted by Soulstorm View Post
don't know what API the guys at Adobe use, but they better change what they are using fast, because Apple is slowly dropping support to everything except Cocoa, so Adobe may find themselves drowning sooner or later...
Adobe has already announced that they are in the process of porting Photoshop to Cocoa, but the next version will be 32-bit only for mac because of Apple's decision to pull the plug on 64-bit Carbon.
titaniumdecoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
question regarding GUI factory. rwm C++ 3 Aug 17th, 2007 8:58 AM
Visual Basic 2005 Question ReubenK Visual Basic .NET 3 Apr 5th, 2006 3:23 PM
How to post a question nnxion C++ 10 Jun 3rd, 2005 11:53 AM
How to post a question nnxion C++ 0 Jun 3rd, 2005 8:55 AM
How to post a question nnxion C 0 Jun 3rd, 2005 8:55 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC