| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 > > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.