delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/05/06:18:54

Date: Thu, 5 Jun 1997 13:15:10 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: John Velman <velman AT igate1 DOT hac DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Messages to win3.1 from djgpp?
In-Reply-To: <5n1s9a$opc@hacgate2.hac.com>
Message-ID: <Pine.SUN.3.91.970605130732.6269B-100000@is>
MIME-Version: 1.0

On 3 Jun 1997, John Velman wrote:

> Now that I have bash and a lot of other things installed and working I'd like 
> one more thing -- I'd like to be able to start a win3.1 program from the bash 
> command line (running in a dos box under win3.1).  
> 
> It *should* be possible to send messages to win 3.1 from a djgpp program 
> running in a dos box.  (It is possible to cut and paste from the dos box using 
> the control box in the upper left corner of the dos window.)

I don't understand.  Starting a Windows program is one thing; passing 
messages between programs is something entirely different; cutting and 
pasting through the Windows clipboard is different from both of the 
above.  What exactly are you trying to accomplish and which of these 
three are you asking about?

> The question is, what is the interface?

If you are talking about moving data from and to the Windows clipboard,
then this is both easy and has been done.  The MS-DOS version of Emacs
does that when it runs on Windows, by calling function 17h of the
interrupt 2Fh.  The relevant info is available e.g. in the Ralf Brown's
Interrupt List.  You can also see the way this is implemented in Emacs by
downloading the file v2gnu/em1934s1.zip from the DJGPP archives and
looking into the file gnu/emacs/src/w16select.c there. 

- Raw text -


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