I have written a VFP Multithreaded Com DLL and in my VCX lbrary, I have
created a shutdowntimer class based on the Timer Class. n this class I have
put code into the Timer Event to do what it needs to do.

I have put the folloing into my initianlisation code for the COM DLL:

PUBLIC ShutDownTimer

ShutDownTimer = CREATEOBJECT("ShutDownTimer")

ShutDownTimer.Enabled = .T.

ShutDownTimer.Interval=10000



However, the timer never seems to fire.

What am I doing wrong?

Cheers

David

Re: Timer in VFP COM DLL by Claude

Claude
Fri Feb 03 03:31:14 CST 2006

The vfp timer will not work in a VFP mtdll. You'd need to use a C++ timer
like the one here:
http://download.com.com/3000-2401-889219.html?tag=lst-0-1
There is some vfp code for it here:
http://www.dotcomsolution.com/avfpdemo2r/docs.htm#timer

"David Younger" <davidyounger1@hotmail.com> wrote in message
news:uSZC6pHKGHA.208@tk2msftngp13.phx.gbl...
>I have written a VFP Multithreaded Com DLL and in my VCX lbrary, I have
>created a shutdowntimer class based on the Timer Class. n this class I have
>put code into the Timer Event to do what it needs to do.
>
> I have put the folloing into my initianlisation code for the COM DLL:
>
> PUBLIC ShutDownTimer
>
> ShutDownTimer = CREATEOBJECT("ShutDownTimer")
>
> ShutDownTimer.Enabled = .T.
>
> ShutDownTimer.Interval=10000
>
>
>
> However, the timer never seems to fire.
>
> What am I doing wrong?
>
> Cheers
>
> David
>
>