cuser-interfacevirtualboxconio

Downloading conio.h and using a GUI on Virtualbox


This is for programming in C:

I want to download conio.h in Virtualbox on my mac computer, however, after I downloaded it which was from here: https://sourceforge.net/projects/myconio/, I began receiving errors such that it couldn't find specific files. Is there another place I can download conio.h from or is there a way I can fix the errors I am receiving?

Also, I am making a quiz game for which I want to create a GUI (Graphic User Interface). How would I be able to do this in Virtualbox so that I don't have the game appear in terminal but in a separate GUI?


Solution

  • conio.h is a header that worked only on very old compilers, older than the C89 standard. You cannot use that thing for any kinds of GUI. The compilers themselves don't work on modern systems (only 32-bit versions of Windows can run 16-bit DOS apps)

    The thing is, there is nothing real that compensates for what is missing in conio.h.

    Note: In Code::Blocks I noticed that some versions accept _getch instead of getch as a function name. Other functions don't work. Even this one is not really standard.