Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 21, 2002 Need help with bios.h | ||||
---|---|---|---|---|
| ||||
I have tried to figure this out and have had no luck. I want be able to read from and write to the serial and parallel ports. I have not been able to use anything in bios.h yet. I keep getting a message that the function has not prototype: /* Example for _bios_serialcom */ #include <bios.h> #include <iostream.h> void main() { unsigned com1_status; com1_status = _bios_serialcom (3,0,0); cout<<" Com1 status : "<<com1_status<<endl; } The exact error is : Error: function '_bios_serialcom' has no prototype Here is what the compiler sees of bios.h : ---------------------------------------------------------------- /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */ #if 0x823 || __RCC__ #pragma once #endif #ifndef __BIOS_H #define __BIOS_H 1 #ifndef __NT__ #endif /* __NT__ */ #endif ---------------------------------------------------------------- Any suggestions? Thanks! -- Paul Apostolik parabolis@softhome.net |
March 22, 2002 Re: Need help with bios.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Apostolik | Try using sc -ml...
Jan
Paul Apostolik wrote:
> I have tried to figure this out and have had no luck. I want be able
> to read from and write to the serial and parallel ports. I have not been
> able to use anything in bios.h yet. I keep getting a message that the
> function has not prototype:
>
> /* Example for _bios_serialcom */
>
> #include <bios.h>
> #include <iostream.h>
>
> void main() {
> unsigned com1_status;
>
> com1_status = _bios_serialcom (3,0,0);
> cout<<" Com1 status : "<<com1_status<<endl;
> }
>
> The exact error is : Error: function '_bios_serialcom' has no prototype
>
> Here is what the compiler sees of bios.h :
> ----------------------------------------------------------------
> /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
> #if 0x823 || __RCC__
> #pragma once
> #endif
>
> #ifndef __BIOS_H
> #define __BIOS_H 1
>
> #ifndef __NT__
> #endif /* __NT__ */
>
> #endif
> ----------------------------------------------------------------
>
> Any suggestions? Thanks!
>
> --
>
> Paul Apostolik
> parabolis@softhome.net
|
March 22, 2002 Re: Need help with bios.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | It worked! Thank you. I must ask why I needed to use a large memory model
though? Thanks again!
Jan Knepper wrote:
> Try using sc -ml...
> Jan
>
> Paul Apostolik wrote:
>
> > I have tried to figure this out and have had no luck. I want be able
> > to read from and write to the serial and parallel ports. I have not been
> > able to use anything in bios.h yet. I keep getting a message that the
> > function has not prototype:
> >
> > /* Example for _bios_serialcom */
> >
> > #include <bios.h>
> > #include <iostream.h>
> >
> > void main() {
> > unsigned com1_status;
> >
> > com1_status = _bios_serialcom (3,0,0);
> > cout<<" Com1 status : "<<com1_status<<endl;
> > }
> >
> > The exact error is : Error: function '_bios_serialcom' has no prototype
> >
> > Here is what the compiler sees of bios.h :
> > ----------------------------------------------------------------
> > /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
> > #if 0x823 || __RCC__
> > #pragma once
> > #endif
> >
> > #ifndef __BIOS_H
> > #define __BIOS_H 1
> >
> > #ifndef __NT__
> > #endif /* __NT__ */
> >
> > #endif
> > ----------------------------------------------------------------
> >
> > Any suggestions? Thanks!
> >
> > --
> >
> > Paul Apostolik
> > parabolis@softhome.net
--
Paul Apostolik
parabolis@softhome.net
|
March 22, 2002 Re: Need help with bios.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Apostolik | BIOS functions are not available in Win32...
Paul Apostolik wrote:
> It worked! Thank you. I must ask why I needed to use a large memory model
> though? Thanks again!
>
> Jan Knepper wrote:
>
> > Try using sc -ml...
> > Jan
> >
> > Paul Apostolik wrote:
> >
> > > I have tried to figure this out and have had no luck. I want be able
> > > to read from and write to the serial and parallel ports. I have not been
> > > able to use anything in bios.h yet. I keep getting a message that the
> > > function has not prototype:
> > >
> > > /* Example for _bios_serialcom */
> > >
> > > #include <bios.h>
> > > #include <iostream.h>
> > >
> > > void main() {
> > > unsigned com1_status;
> > >
> > > com1_status = _bios_serialcom (3,0,0);
> > > cout<<" Com1 status : "<<com1_status<<endl;
> > > }
> > >
> > > The exact error is : Error: function '_bios_serialcom' has no prototype
> > >
> > > Here is what the compiler sees of bios.h :
> > > ----------------------------------------------------------------
> > > /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
> > > #if 0x823 || __RCC__
> > > #pragma once
> > > #endif
> > >
> > > #ifndef __BIOS_H
> > > #define __BIOS_H 1
> > >
> > > #ifndef __NT__
> > > #endif /* __NT__ */
> > >
> > > #endif
> > > ----------------------------------------------------------------
> > >
> > > Any suggestions? Thanks!
> > >
> > > --
> > >
> > > Paul Apostolik
> > > parabolis@softhome.net
>
> --
>
> Paul Apostolik
> parabolis@softhome.net
|
Copyright © 1999-2021 by the D Language Foundation