Thread overview
Need help with bios.h
Mar 21, 2002
Paul Apostolik
Mar 22, 2002
Jan Knepper
Mar 22, 2002
Paul Apostolik
Mar 22, 2002
Jan Knepper
March 21, 2002
    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
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
    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
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