graphics.h
-
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
-
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
Do you have this file on your computer?
WhiteSky
-
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
You cannot find graphic.h when you try to compile with visual studio because it is a borland extension. Microsoft uses a different one, so is gnu etc etc. Try compiling with Borland Builder it should work... Downloading someone's source code and trying to compile it with vis studio is not enough. You have to take into account which platform was used to write the program. For example you could try download a game which was written for Linux and try to compile it in visual studio. It will most certainly fail because it will use libraries and extensions that were only developed for the linux system.
-
Hi, I'm a newbee in programming world and I learn to program in C++ by analyzing source codes. I don't know whether this is good idea but... Anyway the reason why I posted this message here because I have a problem. Whenever I download someones source code ( mainly simple games like tetris) there is included header file called graphics.h. When I compile this source code it reports me that it can't find such header file. What is the problem? I mean I know that i don't have such header file but why? I'm using Visual Studio 6 and VS 2005.
I think graphics.h is a part of Borland Turbo C++. It does not come with MS Visual studio. You could install Turbo C++ 3.0 etc to compile the code. Also you could port it to gcc to run on *nix based systems: http://www.sandroid.org/TurboC/[^]
this is this.