[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MS VC++ 6.0 and the C library

Posted on 1998-12-23
6
Medium Priority
?
246 Views
Last Modified: 2010-04-16
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
0
Comment
Question by:BigBadger
  • 4
  • 2
6 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 400 total points
ID: 1180961
The answer is as cruel as it is simple: You need a 16bit compiler, as the functions included in 'bios.h' arent supported on 32bit platforms, and as VC6 can't produce 16bit executables, the file has been removed...
0
 
LVL 86

Expert Comment

by:jkr
ID: 1180962
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...
0
 

Author Comment

by:BigBadger
ID: 1180963
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 86

Expert Comment

by:jkr
ID: 1180964
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...
0
 

Author Comment

by:BigBadger
ID: 1180965
Thanks jkr!
I'll look on the web for the GNU C compiler.

Big Badger
0
 
LVL 86

Expert Comment

by:jkr
ID: 1180966
If you encounter problems using it, feel free to ask ... ( i like it ;-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question