home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4235 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.0 KB

  1. Path: sparky!uunet!mcsun!sun4nl!media03!rla
  2. From: rla@media03.UUCP (Raymond van der Laan)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: DLL-question
  5. Keywords: Alloc, Peekmessage
  6. Message-ID: <2914@media03.UUCP>
  7. Date: 15 Dec 92 14:47:18 GMT
  8. Organization: Mediasystemen, Netherlands
  9. Lines: 30
  10.  
  11. Is this possible in a DLL:
  12.  
  13.     ... x;
  14.     ... y;
  15.  
  16.     f1 ()
  17.     {
  18.         y = GlobalAlloc(...);
  19.         x = GlobalLock(y);
  20.         PeekMessage()
  21.         if ours then memcpy(x,...,...);
  22.         else Translate & DispatchMessage
  23.         ...
  24.     }
  25.  
  26.     f2 (a)
  27.     {
  28.         memcpy(a, x, ...);
  29.         GlobalFree(y);
  30.     }
  31.  
  32. The caller calls f1, then f2.
  33. -- 
  34. Raymond van der Laan           Email: sun4nl!media01!rla
  35. Mediasystemen BV               Tel. : +31 23-319075            
  36. Haarlem                        Fax  : +31 23-315210
  37. The Netherlands                                   
  38.                                     'There is no masterplan.
  39.                                      This is what we do now.'
  40.                                             - Stuart Adamson
  41.