🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #686

Re: DosApps, DDE, and the Clipboard

#686
From: paulb
Date: Fri, 23 Nov 1990 16:36
40 lines
2529 bytes
In article <653@nih-csl.nih.gov> bert@helix.nih.gov (Bert Tyler) writes:
> 
>1) Is WINOLDAPP still supported under Windows 3.0?  Is it likely to
>be supported in the future, or am I guiding this guy gently off a cliff?
> 
To the best of my knowledge, it is (my windows 3 directory structure has
a file called winoldap.mod in the system directory).  However see answer
to 3) below.

>3) What is wrong with this approach that I'm not clever enough
>to have thought about?
>
I think a better solution would be to adopt the approach outlined in a
number of MSJ articles on the subject of communication between OS/2
kernel apps and PM apps.  I see no reason why a similar system under
windows shouldn't work.  First you write a windows app which registers a
window class, and creates an *invisible* window.  This window handles
all the DDE, clipboard etc. stuff for you.  It then communicates with
the DOS app by allocating memory in the low megabyte of RAM (through
GlobalDosAlloc), and placing the data there.  You can use whatever
protocol takes your fancy to communicate between the windows server and
your application.

Please note, I haven't tried this - it just seems like the most sensible
way to go about things.  Let me know if you have any success if you do
decide to go down this route.

Another avenue that may be worth looking at is the DPMI - although I
know even less about this than I do about the above.

Paul.

+--------------------------+-----------------------------------------------+
|Paul Butcher              | JANET:  paulb@uk.ac.york.minster              |
|Dept. of Computer Science | EARN:   paulb@minster.york.ac.uk              |
|University of York        | UUNET:  ..!uunet!mcsun!ukc!minster!paulb      |
|York  YO1 5DD  ENGLAND    | ARPA:   paulb%york.minster@nsfnet-relay.ac.uk |
|Tel: (0904) 432760        | Alternative address:                          |
|     (+44 904) 432760     |         PRAB1@uk.ac.york                      |
+--------------------------+-----------------------------------------------+
Technical Details
Message-ID: <659378190.11433@minster.york.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!reading!minster!paulb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!reading!minster!paulb
From: paulb@minster.york.ac.uk
Newsgroups: comp.windows.ms.programmer
Subject: Re: DosApps, DDE, and the Clipboard
Message-ID: <659378190.11433@minster.york.ac.uk>
Date: 23 Nov 90 16:36:30 GMT
Organization: Department of Computer Science, University of York, England
Lines: 40