Author Archives: brar07

Blog changed

Posted on

Hello friends,

I have changed this blog and this blog contains only the two posts

I have made a new blog

http://defeatc.blogspot.com/

There you will find more posts on C,C++ or even Java.You can post your problems there.

Thank You

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;
}

Run Turbo C in full screen in Windows7

Posted on

Hello friends,
Today everybody has upgraded to Windows7,but engineering students face problems of full screen in Turbo C in Windows7.
I have a solution to this problem.
1st Solution:

1.Download and install the usual Turbo C program.

2.Then you have to download Emulated Turbo C++ and the password is mohitsaxena

3.Just install it as usual and run it.

2nd Solution:

1.Install the Turbo C as usual and then download Dosbox for Windows here.

2.Run Dosbox which is just similar to dos of windows,but it has slightly different commands from Windows Dos.

3.Here you will find that default drive is Z:\.As we all install turbo C in C:\ mostly.So,for changing the drive ,type mount c c:\ and then press Enter.But it will still show you some error,then again type C:\ and press Enter .

4.Now the drive will be changed and normal windows dos commands will work.So,type cd TC.Then, cd bin and finally TC.exe.Now Turbo C will start through Dosbox.

5.The main use of Dosbox is that it has full screen mode.For full screen mode press Alt plus Enter.

And your full screen Turbo C will start running.

There are other ways too like disabling the graphics but in some computers ,they dont work.

I will advice you to go any one of the above,but i will say you must have found the first one easy.So go for it.

In the next post,i will write about How to run graphics program in Turbo C in Windows.Also,do write your views and post your problems in C/C++ program.