home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!karol
- From: karol+@pitt.edu (Filip M. Gieszczykiewicz (fmgst@unix.cis.pitt.edu))
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: MS-DOS (windowed) & Win 3.1 communication
- Summary: almost works(tm) but need help
- Message-ID: <5826@blue.cis.pitt.edu.UUCP>
- Date: 15 Sep 92 05:21:54 GMT
- Sender: news+@pitt.edu
- Followup-To: comp.os.ms-windows.programmer.misc
- Organization: University of Pittsburgh
- Lines: 43
-
-
- Greetings.
-
- I'm trying to let an MS-DOS program talk to a Win 3.1 program
- through the clipboard using the PC Magazine routines. While
- it does work, reliable it is not! I wrote an application in
- MS-DOS that gets executed from a window, it brings up a
- Visual Basic front-end and when that is done, the Visual Basic
- passes the user's selections to the clipboard from where the
- MS-DOS app read it.
-
- That's should work, in theory. I've tested it quite well but
- when I try the above I get random "clipboard locked" and
- associated errors. I've had it to about here with this hoopla
- and am in the process of writing a DDE server (clipboard)/
- client (VB) in the hope that this will eliminate/reduce these
- problems.
-
- So, what's my question? Well, does anyone know of a way I can
- just transfer, say, 20K of TEXT between MS-DOS (in a window)
- and Windows 3.1 (VB or a DDE server). I don't care about whether
- this would be documented or not (since I'm already "pushing my
- luck").
-
- I can not afford the time waste it would take to write the
- data to a file in one app and read it in the other. So, can
- I somehow pass a GlobalAlloc? Is my best bet just writing a
- protocol (we may need to transfer around 500K of text but the
- clipboard holds only 32K so a protocol is the only way).
-
- Someone, please help. I've looked in all books (got the "Undoc
- Win" but it doesn't even go into this) with no help.
-
- Please reply to fmgst+@pitt.edu or here, if it's easier.
-
- I will summarize & repost in a week or so.
-
- Take care.
- --
- ________________________________________________________________________________
- ________________________________________________________________________________
- _______________________karol@unix.cis.pitt.edu__________________________________
- ________________________________________________________________________________
-