↑ ↓ ← → Paul Apostolik <parabolis softhome.net> 
 writes:
 
    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
 
↑ ↓ ← → Jan Knepper <jan smartsoft.cc> 
 writes:
 
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> 
 writes:
 
    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
 
↑ ↓ ← → Jan Knepper <jan smartsoft.cc> 
 writes:
 
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