Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question to Windows programmers

Author: Reinhard Scharnagl

Date: 15:58:15 06/28/04

Go up one level in this thread


On June 28, 2004 at 18:17:30, F. Huber wrote:

>On June 28, 2004 at 17:38:40, Reinhard Scharnagl wrote:
>
>>Hi Franz,
>>
>>if it is not avoidable to use that console program ´Py.exe´,
>>one not elegant way to reach your goal would be, to use a very
>>special file name to where you write creating and appending
>>its outputs by redirectioning it. After calling ´Py.exe´ you
>>will have to send a message to your window, which then also
>>has to display the (new part of) the text.
>>
>>Hope that could work and help you.
>>
>>Regards, Reinhard.
>
>Hello Reinhard,
>
>your idea with writing to a file I´ve already tried more than a year ago
>with Chest, but since this is not a ´file of record´ but a simple ´text file´,
>this method didn´t work - Windows did NOT allow both processes to access
>such a text file at the same time! :-(

The Window has to open and close it only for short for to read it answering
the message it will get, store the content, invalidate the window and use
the buffered data to answer the paint events. Not keeping the file open and
not opening it at first within that window.

When I produce text via redirection of console programs I normally am able
to view the output by Notepad during the working writing process.

Is the Window task a separated process?

Reinhard.

>So for Chest I did it with a ´record file´, but of course for this I had
>to make changes directly in the original Chest source code -
>and THAT I don´t want to do again for Popeye.
>
>Nevertheless thanks,
>Franz.



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.