XDS-TS BIOSIO Source for Windows

This is a discussion on XDS-TS BIOSIO Source for Windows within the modula forums in Programming Languages category; I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251 using the WinCon functions. However I keep getting an INVALID HANDLE or ACCESS error when trying to read from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the handle with the windows CreateFille-function. Can anybody help me please? -- AChristoff Joubert at Paul Jungnickel Home, Plot 45, Lynnwood Road, Zwavelpoort, Gautteng, South Africa; PO Box 2066, Zwavelpoort. 0036, South Africa; +27-12-8090245 (Fax/Tele-Soft BBS); 5:7106/46.1 (Fido-net); acj@lantic.net (E-mail)...

Go Back   Application Development Forum > Programming Languages > modula

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-13-2005, 06:36 AM
AC Joubert
Guest
 
Default XDS-TS BIOSIO Source for Windows

I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251
using the WinCon functions.
However I keep getting an INVALID HANDLE or ACCESS error when trying to read
from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the
handle with the windows CreateFille-function. Can anybody help me please?
--
AChristoff Joubert at Paul Jungnickel Home, Plot 45, Lynnwood Road,
Zwavelpoort, Gautteng, South Africa; PO Box 2066, Zwavelpoort. 0036, South
Africa; +27-12-8090245 (Fax/Tele-Soft BBS); 5:7106/46.1 (Fido-net);
acj@lantic.net (E-mail)


Reply With Quote
  #2  
Old 08-13-2005, 08:20 AM
Marco van de Voort
Guest
 
Default Re: XDS-TS BIOSIO Source for Windows

On 2005-08-13, AC Joubert <acj@lantic.net> wrote:
> I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251
> using the WinCon functions.
> However I keep getting an INVALID HANDLE or ACCESS error when trying to read
> from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the
> handle with the windows CreateFille-function. Can anybody help me please?


GETSTDHANDLE(STD_INPUT_HANDLE)

for a simple example (in pascal, LGPL) see:

http://www.freepascal.org/cgi-bin/vi...l/win32/crt.pp

and the generic parts:

http://www.freepascal.org/cgi-bin/vi...l/inc/crth.inc
http://www.freepascal.org/cgi-bin/vi...tl/inc/crt.inc
Reply With Quote
  #3  
Old 08-21-2005, 05:57 AM
AC Joubert
Guest
 
Default Re: XDS-TS BIOSIO Source for Windows

No, that doesn't work! Same problem. It gives the INVALID_HANDLE_VALUE error
when using that handle in a subsequent Windows console function.
"Marco van de Voort" <marcov@stack.nl> wrote in message
news:slrndfrpch.2o3v.marcov@snail.stack.nl...
> On 2005-08-13, AC Joubert <acj@lantic.net> wrote:
> > I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS

251
> > using the WinCon functions.
> > However I keep getting an INVALID HANDLE or ACCESS error when trying to

read
> > from the ConsoleInputBuffer. I can't found the value for CONIN$ to open

the
> > handle with the windows CreateFille-function. Can anybody help me

please?
>
> GETSTDHANDLE(STD_INPUT_HANDLE)
>
> for a simple example (in pascal, LGPL) see:
>
>

http://www.freepascal.org/cgi-bin/vi...l/win32/crt.pp
>
> and the generic parts:
>
>

http://www.freepascal.org/cgi-bin/vi...l/inc/crth.inc
>

http://www.freepascal.org/cgi-bin/vi...tl/inc/crt.inc


Reply With Quote
  #4  
Old 08-22-2005, 05:37 AM
Martin Brown
Guest
 
Default Re: XDS-TS BIOSIO Source for Windows

AC Joubert wrote:

> However I keep getting an INVALID HANDLE or ACCESS error when trying to read
> from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the
> handle with the windows CreateFille-function. Can anybody help me please?


Could the problem be that the OS treats the console as a pre existing
file so that only OpenFile operations are permitted?

Regards,
Martin Brown
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.