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. some header files doesn't work in visual studio 2008

some header files doesn't work in visual studio 2008

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiographicshelpquestion
4 Posts 3 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.
  • H Offline
    H Offline
    hasani2007
    wrote on last edited by
    #1

    Hello I am using win32 console in visual stdio 2008, but conio.h and graphics.h and ... header files doesn't work. WHAT SHOULD I DO? Is there any way to make visual studio 2008 compatible with these header files? Thanks any one help me.

    A 1 Reply Last reply
    0
    • H hasani2007

      Hello I am using win32 console in visual stdio 2008, but conio.h and graphics.h and ... header files doesn't work. WHAT SHOULD I DO? Is there any way to make visual studio 2008 compatible with these header files? Thanks any one help me.

      A Offline
      A Offline
      Aescleal
      wrote on last edited by
      #2

      Hi, the header files you mentioned aren't standard C++ or C header files. These files were specifically for DOS programming - that's the crufty 16 bit thing that pretended to be Microsoft's operating system until Windows NT came out. It's not the Windows console that you're programming. If I recall correctly back in the mists of time Microsoft VC++ last shipped those headers with Visual C++ 1.5, which was released in 1993 or so with maybe patches up to 1997. Borland's compiler used to have conio.h but I haven't used that in about 20 years so I can't comment further. So you've got three choices... - the best option is find somone that's implemented the functions in the headers in a library for VC++ and then released them - implement the functions in the headers yourself. This is going to be tricky for graphics.h as you don't set a graphics mode in a console based application and you'll probably have to get to grips with DirectX or OpenGL to do something equivalent. conio for the most part should be relatively trivial - look at the functions the program you want to use is using and find equivalents in the Win32 API or a 3rd party library, converting the code that calls them as you go Sorry to be the bearer of bad news, Ash

      C 1 Reply Last reply
      0
      • A Aescleal

        Hi, the header files you mentioned aren't standard C++ or C header files. These files were specifically for DOS programming - that's the crufty 16 bit thing that pretended to be Microsoft's operating system until Windows NT came out. It's not the Windows console that you're programming. If I recall correctly back in the mists of time Microsoft VC++ last shipped those headers with Visual C++ 1.5, which was released in 1993 or so with maybe patches up to 1997. Borland's compiler used to have conio.h but I haven't used that in about 20 years so I can't comment further. So you've got three choices... - the best option is find somone that's implemented the functions in the headers in a library for VC++ and then released them - implement the functions in the headers yourself. This is going to be tricky for graphics.h as you don't set a graphics mode in a console based application and you'll probably have to get to grips with DirectX or OpenGL to do something equivalent. conio for the most part should be relatively trivial - look at the functions the program you want to use is using and find equivalents in the Win32 API or a 3rd party library, converting the code that calls them as you go Sorry to be the bearer of bad news, Ash

        C Offline
        C Offline
        Cool_Dev
        wrote on last edited by
        #3

        conio.h is still there with Visual C++??!!! http://msdn.microsoft.com/en-us/library/078sfkak(VS.71).aspx[^]

        A 1 Reply Last reply
        0
        • C Cool_Dev

          conio.h is still there with Visual C++??!!! http://msdn.microsoft.com/en-us/library/078sfkak(VS.71).aspx[^]

          A Offline
          A Offline
          Aescleal
          wrote on last edited by
          #4

          Well blow me down, I thought it had gone yonks ago. Thanks for that. Cheers, Ash

          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