home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3242 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.0 KB

  1. From: slo@otter.hpl.hp.com (Steve Loughran)
  2. Date: Wed, 4 Nov 1992 11:31:03 GMT
  3. Subject: Re: Message passing from DLL routine to VB
  4. Message-ID: <59700008@otter.hpl.hp.com>
  5. Organization: Hewlett-Packard Laboratories, Bristol, UK.
  6. Path: sparky!uunet!cs.utexas.edu!uwm.edu!caen!sdd.hp.com!scd.hp.com!hpscdm!hplextra!otter.hpl.hp.com!otter!slo
  7. Newsgroups: comp.os.ms-windows.programmer.misc
  8. References: <1992Nov3.151348.15255@serval.net.wsu.edu>
  9. Lines: 15
  10.  
  11. >I have a data acquisition programming running in background as a
  12. >DLL and would like it to notify my VB program when it is done. Is there
  13. >an easy way of doing this without using DDE?
  14.  
  15. Just send a message which your VB program can handle.
  16. The one i've used in the past is just WM_CHAR with wParam set to a low
  17. number which the user wouldn't normally press (16 & 17 are good)
  18. This should be sent to whatever window your VB app passes to the DLL -almost
  19. any control will do. This control just handles the KeyPress(keyascii) 
  20. event and checks for keyascii=17.
  21.  
  22. Fairly tortuous but easy to do...
  23.     Steve
  24.  
  25.  
  26.