cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/01/22:11:36

Message-ID: <006301bedc8c$89a9eea0$d19879c3@oemcomputer>
From: "Bas Hamstra" <bas DOT hamstra AT wxs DOT nl>
To: <djgpp AT delorie DOT com>
Subject: Re: How to make win9 console apps with DJ
Date: Mon, 2 Aug 1999 04:12:56 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Reply-To: djgpp AT delorie DOT com

-----Oorspronkelijk bericht-----
Van: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Nieuwsgroepen: comp.os.msdos.djgpp
Aan: Bas Hamstra <bas DOT hamstra1 AT wxs DOT nl>
CC: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Datum: zondag 1 augustus 1999 10:42
Onderwerp: Re: How to make win9 console apps with DJ


>
>On Fri, 30 Jul 1999, Bas Hamstra wrote:
>
>> a) Sometimes DOS complains that the EXE is too big. Still it DOES run
from
>> within RHIDE.
>
>This usually means that you are invoking a raw COFF image instead of
>the stubified .exe program.  DOS doesn't know how to run the former.

Since I have a new PC and Win98 the problems went totally away. No idea why.
I downloaded DJGPP again, for W98. Now I can start the program from the
Windows explorer, which was NOT possible earlier. Errormsg "Not a windows
program" or something. And they multitask ok. Meaning: when I start 2
versions of the same program in 2 dos boxes, they both keep running.

Why is this important? The chess engine should run as an engine-process in
Winboard. Both processes communicating via pipes. A frozen process would
obtain a somewhat lower ELO rating :)

>> b) The app's don't seem to multitask under Win9.
>
>What exactly do you mean by that?  Windows multitasks between DOS
>boxes, but if you want multitasking within a single program, you have
>to write it as a multitasking program.  Check out several
>multitasking/multithreading packages mentioned in section 22.3 of the
>FAQ.

Will certainly look into it. I am planning to make a thread to look for
input from the pipe. I know how to do this for CBuilder. Threads
encapsulated in a class, VERY easy. Basically you hang your code under the
Execute() method.

>Gprof is part of the Binutils package and should be already installed
>on your system.  Doesn't it work for you?

It works perfectly, thanks to the patch. However I was afraid I had to
install a whole new DJ like package to get things right under windows (egcs
or cygnus or whatever) but the problems are gone. In fact I DID down cygnus,
but I could't figure all that stuff out at first glance. Glad I can return
to RHIDE :)


Regards,
Bas Hamstra.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019