Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A little experiment: WinBoard and Visual Basic

Author: Luca Dormio

Date: 07:10:05 07/19/99

Go up one level in this thread


On July 16, 1999 at 11:55:37, Ian Osgood wrote:

[SNIP]
>>but doesn't work either way, WB doesn't react to my command string (without
>>showing any warning); since the WriteFile API returns 0 (success) i probably
>>fail to do something else, any advice?
>>
>>Thanks in advance
>>Luca
>
>Try using the FlushFileBuffers function after you call WriteFile.  Otherwise,
>output will be held until the internal buffer is full.
>
>Ian Osgood

Ian  i've tried but it still doesn't work; FlushFileBuffers returns
ERROR_INVALID_HANDLE, i've check in MSDN and it says that the error is due to
the fact that WriteFile is already an unbuffered function so doesn't need
FlushFileBuffers...

Thanks anyway
Luca



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.