Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. graphics.h

graphics.h

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestioncsharpc++graphics
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ivansla
    wrote on last edited by
    #1

    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.

    H E K 3 Replies Last reply
    0
    • I ivansla

      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.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Do you have this file on your computer?


      WhiteSky


      1 Reply Last reply
      0
      • I ivansla

        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.

        E Offline
        E Offline
        Emmanouil
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • I ivansla

          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.

          K Offline
          K Offline
          khan
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups