Author: Odd Gunnar Malin
Date: 23:13:21 05/22/02
Go up one level in this thread
On May 22, 2002 at 22:04:24, martin fierz wrote: >aloha, > >i have written a checkers interface called "checkerboard" which uses dll's as >checkers engines. since this approach is limited to windows, i would like to >change things so that engines read and write to standard input and output and >the interface reads and writes there. hmm - i just don't know how that is >done... can somebody give me a tip? (can be very short, what kind of function >that might be, i can then look it up in the f*** manuals). > >cheers > martin Hi. For starting and stoping the engine I think the grandpa is this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_4uus.asp For reading and writing just use ReadFile and WriteFile to std-handles. Reading could be done in its own thread so you just hang on ReadFile until input is arrived without taking up resources. Odd Gunnar
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.