Author: Peter Fendrich
Date: 03:44:16 09/05/98
Go up one level in this thread
On September 04, 1998 at 16:35:13, Inmann Werner wrote:
>I try to write an interface for my program to winboard.
>Rather frustrating!
>I tried to write a simple testprogram, only trying to communicate with winboard.
>No result.
>
>How do I get input from Winboard and how can I output to winboard.
>
>I also looked at crafty source but I did not really find something. (What should
>I search?)
>
>I work with Watcom C and compile for Windows NT. I thought, the Input comes from
>stdin (like Auto232), but.....
>
>I start winboard with:
>winboard /cp /fcp=test.exe /fd="c:\watcom\binw\neuschach\win" /scp=test.exe
>/sd="c:\watcom\binw\neuschach\win"
>and both programs open. But thats it. If I send with CTRL ALT 1 nothing happens.
>
>I am fully stuck, and that frustrates me a lot.
>
>Any tips?
>
>Werner
1) Include /debug in your winboard commandline above. Then you can see a log of
what commands winboard sent to and received from the programs.
2) Try to turn off buffering of stdin and stdout.
Something like
setbuf( stdin, 0);
setbuf( stdout, 0);
in the beginning of your code.
//Peter
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.