home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!media03!rla
- From: rla@media03.UUCP (Raymond van der Laan)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: DLL-question
- Keywords: Alloc, Peekmessage
- Message-ID: <2914@media03.UUCP>
- Date: 15 Dec 92 14:47:18 GMT
- Organization: Mediasystemen, Netherlands
- Lines: 30
-
- Is this possible in a DLL:
-
- ... x;
- ... y;
-
- f1 ()
- {
- y = GlobalAlloc(...);
- x = GlobalLock(y);
- PeekMessage()
- if ours then memcpy(x,...,...);
- else Translate & DispatchMessage
- ...
- }
-
- f2 (a)
- {
- memcpy(a, x, ...);
- GlobalFree(y);
- }
-
- The caller calls f1, then f2.
- --
- Raymond van der Laan Email: sun4nl!media01!rla
- Mediasystemen BV Tel. : +31 23-319075
- Haarlem Fax : +31 23-315210
- The Netherlands
- 'There is no masterplan.
- This is what we do now.'
- - Stuart Adamson
-