🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2560

Putting callbacks in a DLL

#2560
From: Ron Burk
Date: Wed, 08 May 1991 18:06
10 lines
937 bytes
I'm writing a window timer class that multiplexes a single Windows timer
to give my application as many timers as it wants.  It would be really
nice if this class could live in a DLL, since then it could service
multiple instances of my application (instead of each instance using up
one of the 16 Windows timers).

The problem is, I don't see any way to make a DLL function a callback
function for a Windows timer.  MakeProcInstance wants an instance
handle and whatever instance I pick might have terminated before the
next timer event is due.  Anybody else have any ideas?
Technical Details
Message-ID: <V64m22w163w@burklabs>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!milton!sumax!polari!rwing!seaeast!burklabs!ronb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!milton!sumax!polari!rwing!seaeast!burklabs!ronb
From: ronb@burklabs (Ron Burk       )
Newsgroups: comp.windows.ms.programmer
Subject: Putting callbacks in a DLL
Message-ID: <V64m22w163w@burklabs>
Date: 8 May 91 18:06:42 GMT
Organization: Burk Labs, Redmond WA
Lines: 10