quote:
Originally posted by wipey
sorry can I just say what I originally meant to ask?
where do you put code like functions and timers in a dll?
To use timers in a dll you have to use a hidden form and place a timer control in that form
or use API functions to create a timer. The first option may be easier for you, but I prefer the 2nd one. It looks more professional
and gives you more control over the timer. These are the timer API functions (the ones that you need)(declarations for VB)
code:
Declare Function SetTimer Lib "user32" Alias "SetTimer" (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Declare Function KillTimer Lib "user32" Alias "KillTimer" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
As I said you in other thread look for the in Google or in the Microsoft online help (or whatever that is called
)
About putting functions in a dll (you'll need to do this if you use the SetTimer API), place them in a module or in a class and make then Public. I think that is the easiest way for you.