Link to home
Start Free TrialLog in
Avatar of BigBadger
BigBadger

asked on

MS VC++ 6.0 and the C library

Hey all!

I'm reading "Tricks of the Game Programming Gurus" and
I can't get the key.c in chapter 3 to compile.

I'm missing the "bios.h" file.
Is this file not included with VC++ anymore?

What should I do?

Thanks,
Big Badger
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ooops - well, you could of course also try to replace the functions from 'bios.h' with 32bit equivalents, but this is not simple - and as there are not necessarily 32bit equivalents of all functions, you might have to re-write the code completely...
Avatar of BigBadger
BigBadger

ASKER

Hey jkr,

Thanks for answering.
It seems like there is always another obstacle
in my way.  I'm trying to learn game programming
and this is the 4th book I've bought.  The friggin
code will never compile.

Is there still a 16 bit C compiler with inline assembler available?  
Do you know where I could find 32 bit versions
of these C functions?

How should I proceed from here?

Thanks
Big Badger
Well, a good choice would be the GNU C compiler, as it is free ;-)
As you were talking about game programming, i assume you want to directly use the video capabilities of the system, so 16bit DOS would eventually be the best choice (at least for the moment - think of DOS extenders like dos4gw or the one that comes with GNU C)
About the 32bit conversion: It'll be difficult - the direct disk I/O routines as well as the COM routines have been superseded by a totally different (and incompatible) programming model. The same problem occurs with almost all functions - most of the information is still available, but through a very different set of Win32 APIs...
Thanks jkr!
I'll look on the web for the GNU C compiler.

Big Badger
If you encounter problems using it, feel free to ask ... ( i like it ;-)