Date: Thu, 5 Jun 1997 13:15:10 +0300 (IDT) From: Eli Zaretskii To: John Velman cc: djgpp AT delorie DOT com Subject: Re: Messages to win3.1 from djgpp? In-Reply-To: <5n1s9a$opc@hacgate2.hac.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.