home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1842 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.2 KB

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