RSS Feed

Run graphics program in Turbo C

Posted on

Hello friends,

In the last post(which was actually my first post),i told you the 2 ways to run Turbo C in full screen in Windows7.In this post,i will tell you how to run graphics program in Windows XP or even vista/7.There is no big problem in that,but when we download Turbo C and install it,then its default graphics library is not set and some of the files are missing in it.If you will try to compile any program in it,then it will show linker errors.For removing these,you will have to go to Options>Linker>Libraries.Here,you will find that there is only one option(Standard Run Time),which is cross marked.Now just cross marked Graphics Library.Then press OK.

The files that are missing are egavga.bgi and egavga.obj.Without these,your graphics program will be compiled with no errors,but when you will open the user screen by pressing Alt plus F5.

Now, download the egavga.bgi file and the egavga.obj file.

After,downloading,copy these files to bgi folder of Turbo C.

Now ,Run Turbo C.Even if it is not working,then copy all the files from bgi folder to bin folder.

Always remember that you need to run Turbo C in full screen to run graphics program.

If you want that i should make you understand by making a video,then please post that as a comment and please Subscribe for more…

I have made 1 graphics program,maybe you find interesting:

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include<dos.h>
int main(void)
{
   int gdriver = DETECT, gmode, errorcode;
   int i,j;
   initgraph(&gdriver, &gmode,””);
   for(j=1;j<2;j++)
   {
   for(i=1;i<=30;i++)
   {
   circle(300,200,i);
   setcolor(i);
   delay(100);
   }
   circle(300,200,30);
   setcolor(0);
   for(i=30;i>=1;i–)
   {
   circle(300,200,i);
   setcolor(0);
   delay(100);
   }
   }
   getch();
   closegraph();
   return 0;
}

About these ads

14 responses »

  1. very good data it helped me a lot thank you (i believe n appreciating)

    Reply
  2. Link is not valid for file.

    Reply
  3. thanx a ton….it ws really helpful

    Reply
  4. .OBJ file link is not valid….
    can u please give me the correct link…

    Reply
  5. thank u so much, u slove my problem,…..

    Reply
  6. please upload your video. I tried but it didin’t work

    Reply
  7. Aanchal Dalmia

    Thankx a lot!! Great work!!

    Reply
  8. Yet not working!!
    Tell me more about it!

    Reply
  9. Yet not working!
    PlZ TELL ME MORE !

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: