Mail Archives: djgpp/1997/06/05/06:18:54
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 -