![]() Private Declare Function getFrequency Lib "kernel32" _Īlias "QueryPerformanceFrequency" (cyFrequency As Currency) As Long The key is to make sure it is a public procedure of a ‘normal module’ ![]() This name is stored in pScheduleUpdateProcess so it can be passed to application.Ontime. All that progressupdate does is to call the appropriate method. In this case, I initialize the class, passing to it the name of a ‘normal procedure’ that will know which class method to call. Since I wanted to encapsulate all this in the cSudProgressBar class, we need a workaround. ![]() The strangeness here is that you cannot implement the called procedure as part of a class. One of the arguments for application.ontime is the name of the procedure that should run when the schedule time arrives (in this case the contents of pScheduleUpdateProcess). ![]() PNextUpdate = Now + TimeSerial(0, 0, cUpdateInterval) ' in case there are any outstanding - we only need one ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |