Sie sind auf Seite 1von 3

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Graphics in C (Executing in window 7)


Before we start, let us know What is Graphics?, How it works?, What are the basic requirements for running a graphics program?.

To start with, let us know What is Graphics???? Graphics is nothing but the things we are using in computer screen, the game we play in fact each and every thing we use is somewhat related or using graphics. It start for drawing a simple live, arc or circle to designing a game or creating an interface for a computer Operating systems

Now let us see what the basic requirement for running a graphics program is I. II. III. A computer (.!!) Turbo C++ Compiler (Version 3){What I have used to run programs} DOSBox (If Operating system is Win Vista or above).

Now, How to execute a graphics program in a compiler or a computer?? Steps: {For Win XP} I. II. Download and Install Turbo C++ (Version 3) Go to Options -> Linker -> Libraries -> Mark X in Graphics Library and Standard Runtime Library -> Ok

III.

Now open a new C file and start writing your own C graphics programs..

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

In win 7 and win Vista it may not be so easy to run these programs without making certain tweaking. Here it is The problem is this OS is its the newer version which is completely Windows based while older compilers are Dos Based. Where there is no way, we can find another way around.. . Steps: I. II. III. Download and install DOSBox. Download and install Turbo C++ (version 3) Setting in DOSBox: In order to change the option of DOSBox, go to the DOSBox option menu in the start menu. It will open the DOSBox configuration file on notepad. The configuration file is well documented; just change the full screen value from FALSE to TRUE. It goes Full screen the next time you open the DOSBox.

Now you need to mount the folder contain the Turbo C++ to be able to make it run. To do so, create a folder name dosbox in C-Drive and paste the TC folder inside it. Double click on DOSBox icon (shortcut) and type mount c c:\dosbox ,then change the current working drive from Z:\> to C:\> by typing command C: and then type cd tc\bin and then tc to run the turbo C++. VOILA.!!! Turbo C++ in win Vista and win7 in full screen mode.!!! Its hard to type these command again and again, so to avoid writing these commands each time you open DOSBox, write the following command at the end of the configuration file under the head [autoexe]. From the nest time Turbo C++ will be opened directly.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Mount c c:\dosbox C: cd tc\bin tc

If in case it wont work, then click on file in TurboC++ window -> DOS shell -> It must me showing a dos prompt. Type cd.. to move to the previous directory and the cd bgi to move to the BGI folder containing the graphics drivers!!

Das könnte Ihnen auch gefallen