Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - 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 Mar 21 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 Mar 21 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 Mar 21 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 Mar 21 2002
|