Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-03-2009, 04:54 PM   #1 (permalink)
Traceur
 
zegulas's Avatar
 
Join Date: Oct 2003
Location: Mumbai
Posts: 276
Default Why DOS programs in C/C++?


Can we write programs in C and C++ which run like VB programs, I mean like with a proper GUI. Because in our syllabus all we are taught are programs which run in DOS, but I have heard that Linux was made using C programming language then how did they built the GUI?
__________________
Parkour: A journey started by two & followed by many...
zegulas is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-03-2009, 06:25 PM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Why DOS programs in C/C++?

A lot to learn, you have, my friend. The language is the same everywhere, but the libraries you use with it differ, and the compilers you use also differ.

You used Borland Turbo C++ with Borland's DOS libraries, hence you can only make DOS programs.

Windows GUI needs Windows libraries, which are supported by Windows compilers. You need to learn Windows API which is provided in the libraries, and use C/C++ to call the API to build the GUI.

Linux was written using C, and it was primarily a text based OS, however, graphics libraries were written, like Qt and GTK+ and they are used for building the GUI.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 12-03-2009, 06:38 PM   #3 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: Why DOS programs in C/C++?

Well it is not exactly DOS based(/me thinking of other compilers) but rather text based would be correct description.
Why text based? Because you have to at this stage of learning, learn the syntax, semantics, and analytical treatment in the programs. For basic input, output from text is the simplest and does not require background knowledge. After we'll gain some knowledge, we can move to GUI programming...
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.

Last edited by Liverpool_fan; 12-03-2009 at 06:46 PM.
Liverpool_fan is offline  
Old 12-03-2009, 08:23 PM   #4 (permalink)
Traceur
 
zegulas's Avatar
 
Join Date: Oct 2003
Location: Mumbai
Posts: 276
Default Re: Why DOS programs in C/C++?

OK, got it, thanks a lot dheeraj_kumar & Liverpool_fan you guys have given me a new challenge to complete now, thanks a lot again.
__________________
Parkour: A journey started by two & followed by many...
zegulas is offline  
Old 13-03-2009, 12:07 PM   #5 (permalink)
Sync dreams to reality
 
Join Date: Feb 2009
Posts: 55
Default Re: Why DOS programs in C/C++?

You can learn MFC programming ( it is a part of Visual C++ ). In this you can create VB like button,menus etc using Standard C++ code.
Here you have finer degree of control over every element and you can also define and create custom buttons,menus etc..

But, remember MFC is not as easy as VB. Apart from good command over the C++ language you must also know how to use the MFC Classes,Libraries.
__________________
Stop Talking Start Thinking
aura is offline  
Old 14-03-2009, 06:47 PM   #6 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Why DOS programs in C/C++?

Dont ever learn MFC. I program only with API. I hate programming with MFC, because of its stupid naming convention, and all the confusing code the appwizard generates.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya
- by icebags

Advertisement




All times are GMT +5.5. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2