Re: XDS-TS BIOSIO Source for Windows

This is a discussion on Re: XDS-TS BIOSIO Source for Windows within the modula forums in Programming Languages category; Yes, I have fixed one problem. It must be CreateFile('CONIN$', GENERIC_READ, FILE_SHARE_READ, NIL, OPEN_EXISTING, FILE_BIT_SET(0),NIL). However using this handle in the SetConsoleMode-function results in an INVALID HANDLE error. Can anyone help? I write to a console just before calling the KeyPressed-routine. But it doesn't display the output until you give it a WriteLn-command. Why and how does one circumvent this problem without resorting to screenpositioning functions. "AC Joubert" <acj @ lantic.net> wrote in message news:... > 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 ...

Go Back   Application Development Forum > Programming Languages > modula

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-22-2005, 03:09 PM
AC Joubert
Guest
 
Default Re: XDS-TS BIOSIO Source for Windows

Yes, I have fixed one problem. It must be CreateFile('CONIN$', GENERIC_READ,
FILE_SHARE_READ, NIL, OPEN_EXISTING, FILE_BIT_SET(0),NIL). However using
this handle in the SetConsoleMode-function results in an INVALID HANDLE
error. Can anyone help? I write to a console just before calling the
KeyPressed-routine. But it doesn't display the output until you give it a
WriteLn-command. Why and how does one circumvent this problem without
resorting to screenpositioning functions.
"AC Joubert" <acj@lantic.net> wrote in message news:...
> 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
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:08 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.