Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beginner COM question
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00233507
Message ID:
00237071
Views:
15
Hey JT,

I think I know where you are needing to use this <s>.

When I did the same thing as a test ages ago, I first instantiated the remote object and had it return the total number of records that will be in the SCAN (temp1 record count). Then I started the thermomter using the returned count as the upper boundry, and called the COM processing method in a loop - once for each record, and this gave me the ongoing count to increment the thermometer.

Of course there was some overhead called the method in a loop, but really not too much. You'll get the biggest penalty from the initial COM remote intsantiation, then the communication is pretty fast after that.

Of course, that was a while ago and I may have actually forgotten everything.

E-mail me and let me know how things are going.

Rick


>I've seen plenty of examples of VFP developed COM components which simply return a value. That's straightforward. But how can I accomplish the following example?
>
>My VFP app calls an out of process COM component (developed in VFP6) which SCANs through a large table and does a bunch of processing. This will be time consuming, so I want to display a thermometer bar on the UI to show its progress for the end user. The COM component is out of process and I know that it cannot display any UI, so what's the best way to make the calling process provide a thermometer bar?
>
>Thanks in advance,
>John Tappero
Previous
Reply
Map
View

Click here to load this message in the networking platform