home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Startup
- From: Startup@cup.portal.com (Startup Consulting Company)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Need sleep function that is callable inside a DLL
- Message-ID: <65584@cup.portal.com>
- Date: Wed, 9 Sep 92 21:38:17 PDT
- Organization: The Portal System (TM)
- Lines: 18
-
- I need to get a sleep() function that is callable from within a
- DLL and uses WM_TIMER for the wakeup. Since WM_TIMER requires
- a callback function, I am wondering can you put a callback
- function into a DLL?
-
- If yes, then I'm not clear on how to setup the callback inside
- the .DLL. Can someone point me to some sample code? Since
- all invocations of a function in a .DLL share the same data
- segment, would I skip calling MakeProcInstance() and just
- pass the address of the callback to SetTimer() directly?
-
- To give some additional background, my .DLL is being called
- by Visual Basic, so I can't really put the callback into
- anything outside of the .DLL. If someone already has a
- sleep() function that is callable from within a .DLL I would
- appreciate a pointer to the code.
-
- Jim
-