Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question to Windows programmers

Author: Tony Werten

Date: 23:27:26 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! :-(

Yes, it does. I use it at my work for some temperature data logging. One
application logs in a file on the network, several other can display it. ( the
idea was that you can watch that data at any place in the network ). It is
written in Delphi.

use "fileopen(filename,fmopenreadwrite or fmsharedenynone);" for the writer

and use "fileopen(filename,fmopenread or fmsharedenynone);" for the reader.

I'll have a look later at your original problem, though this might solve it
already.

Tony

>
>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.