Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Feedback
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00910724
Message ID:
00910761
Vues:
23
Wowie Zowie - Thank you!

>VFP timers work in vfp .EXE COMs, not in vfp mtdll COMs. However, we just found a timer that DOES work in vfp mtdll COM servers:
>
>1) go get this .ZIP file from here:
>
>http://download.com.com/3000-2401-889219.html?tag=lst-0-1
>
>2) unzip the .EXE and regsvr32 the associated .DLL
>
>regsvr32.exe ccrpTmr.dll
>
>3) Build the following code as a MTDLL:
>
>
>4) Instantiate the class:
>
>oCom = CREATEOBJECT( "TimerTest.TimerTest" )
>
>That's it!  Your timer events will now function correctly in a VFP MTDLL.
>
>One final thing to remember.  Before you release the object
>(in the case of above, oCom) you must set the enabled property
>of the timer control to .F. like this:
>
>oCom.oTimerControl.Enabled = .F.
>
>Otherwise VFP will crash with a C00005 error.
>
>>Claude - Thanks so much for posting that code. A few years back I had considered a server "write-back-to-client-event" using timer (and COMRETURNERROR) - but my understanding [then] was that a timer object could not be contained in an OLEPUBLIC COM.
>>
>>Is there a rule (or something) regarding timer being contained in a COM?
>>Thanks (again)
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform