-
header files
I'm looking for a header file called bios.h for microsoft visual c++ ver.6.0.
It isn't on the installation-cd
for visual c++. Can anybody tell me where I can find this file.
Thanks, Michael
-
Re: header files
Under Win32, you cannot directly access the BIOS, so the header that
allowed you to was removed. The fact that your program needs it indicates
that it would cause a GFP if you tried running it. Fortunately, Win32
provides better ways to getting all the function that were available via the
BIOS. What is it you wanted to do?
--
Truth,
James Curran
http://www.NJTheater.com
http://www.NJTheater.com/JamesCurran
"michael" <m.kamphus@gmx.de> wrote in message
news:38d72aeb$1@news.devx.com...
>
> I'm looking for a header file called bios.h for microsoft visual c++
ver.6.0.
> It isn't on the installation-cd
> for visual c++. Can anybody tell me where I can find this file.
>
> Thanks, Michael
-
Re: header files
Tanks for your quick reply!
I'm trying to access the com-port to interface a second computer which is
controlling a dye-laser.
The programm has to be written in C because I'm using another routine that
reads out an oszilloscope.
And that routine is written in C.
The programm is a console application. So I hope that I can use the bios
commands.
Otherwise it would be nice if you could tell me how I can access the seriell
port with C. With qbasic the
connection already works with the following commands:
OPEN "COM1: 9600,N,8,1,DS0,OP0,RS" FOR RANDOM AS #1
PRINT #1, "d:opmode=set,grating(1000)" // command for the dye-laser
CLOSE #1
"James Curran" <jamescurran@mvps.org> wrote:
> Under Win32, you cannot directly access the BIOS, so the header that
>allowed you to was removed. The fact that your program needs it indicates
>that it would cause a GFP if you tried running it. Fortunately, Win32
>provides better ways to getting all the function that were available via
the
>BIOS. What is it you wanted to do?
>
>--
>Truth,
>James Curran
>http://www.NJTheater.com
>http://www.NJTheater.com/JamesCurran
>
-
Re: header files
It can be done in C much the same way as in Basic:
char *pcCommPort = "COM1";
hCom = CreateFile( pcCommPort,
GENERIC_READ | GENERIC_WRITE,
0, // comm devices must be opened w/exclusive-access
NULL, // no security attributes
OPEN_EXISTING, // comm devices must use OPEN_EXISTING
0, // not overlapped I/O
NULL // hTemplate must be NULL for comm devices
);
Further explanation is in the WIN32 API documentation, under "CreateFile".
--
Truth,
James Curran
http://www.NJTheater.com
http://www.NJTheater.com/JamesCurran
"michael" <m.kamphus@gmx.de> wrote in message
news:38d8849e$1@news.devx.com...
>
> Tanks for your quick reply!
>
> I'm trying to access the com-port to interface a second computer which is
> controlling a dye-laser.
> The programm has to be written in C because I'm using another routine that
> reads out an oszilloscope.
> And that routine is written in C.
> The programm is a console application. So I hope that I can use the bios
> commands.
> Otherwise it would be nice if you could tell me how I can access the
seriell
> port with C. With qbasic the
> connection already works with the following commands:
>
> OPEN "COM1: 9600,N,8,1,DS0,OP0,RS" FOR RANDOM AS #1
> PRINT #1, "d:opmode=set,grating(1000)" // command for the
dye-laser
> CLOSE #1
>
>
> "James Curran" <jamescurran@mvps.org> wrote:
> > Under Win32, you cannot directly access the BIOS, so the header that
> >allowed you to was removed. The fact that your program needs it
indicates
> >that it would cause a GFP if you tried running it. Fortunately, Win32
> >provides better ways to getting all the function that were available via
> the
> >BIOS. What is it you wanted to do?
> >
> >--
> >Truth,
> >James Curran
> >http://www.NJTheater.com
> >http://www.NJTheater.com/JamesCurran
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks