I was just wondering where I could find a working conio library for Microsoft Visual C++ 6.0. Any help would be greatly appreciated.
Thanks :)
Printable View
I was just wondering where I could find a working conio library for Microsoft Visual C++ 6.0. Any help would be greatly appreciated.
Thanks :)
>I was just wondering where I could find a working conio library for Microsoft Visual C++ 6.0.
#include <conio.h>
Yeah, I'm not stupid... The one I have doesn't work properly and some parts don't work at all.
Each conio library is different. Try adrianxw's tutorial for some alternatives if certain things aren't working.
Try reinstalling.
In fact try a more modern compiler.
Ugh...Download a modern compiler: http://msdn.microsoft.com/vstudio/express/default.aspx
I'm working through school so it will be quite hard to use a different compiler. I can probably find a way if there is no way around it but it is quite a hassle.
Thanks for the prompt replies!
Also, if your conio is COMPLETELY broken, try google'ing for conio.h and compying that into yours.
Here is a place for downloading these headers: http://www.koders.com/c/fid990B3D848...load%2Bconio.h
> Here is a place for downloading these headers
Mmm - does that work?
http://faq.cprogramming.com/cgi-bin/...&id=1043284385
> I'm working through school so it will be quite hard to use a different compiler.
All the more reason to stop using conio.h at all, and learn to use standard C.
By learning standard C, you make "which compiler" a non issue since your code should work on any compiler.
Change compilers. Get MinGW that can be as simple to install as peeling a banana if you download the Dev-C++ IDE.
If then you really want to use conio, you can download conio2 for MinGW from http://conio.sourceforge.net/
>> I'm working through school so it will be quite hard to use a different compiler.
I feel your pain - we have to use VS 6 at University :(
The only conio function I've ever found any use for is getch().
I'm confused...
Has Microsoft decided to give away VC 6.0 for free? If not, why do universities force students to buy it?
> Has Microsoft decided to give away VC 6.0 for free? If not, why do universities force students to buy it?
For the same twisted and warped logic which says they must use TurboC at other places.
Tutor Translation:
I know my code works with this compiler, and I can't be arsed to either make sure it works with other compilers, or check that the code is ANSI compatible to make the whole "which compiler" issue go away.
... and I don't care if my students have to go to P2P networks to get a commercial compiler.
Yeah... Anyways, sorry for the off-topic post. I should have refrained myself considering I knew beforehand tis was mostly a rethorical question.
>Yeah, I'm not stupid...
That's debatable.
>The one I have doesn't work properly and some parts don't work at all.
I doubt that. More likely is that you're expecting Borland conio functions to work with Microsoft libraries, and because the contents of conio.h vary wildly, it doesn't work. That's your problem for relying on compiler specific functions. You'll also get no sympathy as the FAQ for this forum tells you what the problem is and how to solve it using conio.h as an example.