some header files doesn't work in visual studio 2008
-
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.
-
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.
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
-
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
-
conio.h is still there with Visual C++??!!! http://msdn.microsoft.com/en-us/library/078sfkak(VS.71).aspx[^]