Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upgrade Version of DBI ActiveX in Place?
Message
 
To
30/04/2002 10:52:57
Marc Labelle
Qualidev System Inc.
Mirabel, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00647013
Message ID:
00658184
Views:
22
Hi Marc,

Sorry for the long delay in getting back with you. I've been out with family in the hospital. I think your approach of subclassing the container is probably the way I'll go also. I think it's about all you can do to avoid the upgrade problem.

Steve

>Good to know I am not the only one in that kind of problem.
>I have no answer for you but I can share what I am just about to do to avoid the problem I am facing in the next upgrade of DBI.
>
>Like you, I want to have a visual approach. I have a class library that subclass (A) all DBI OCX I use. I tried hacking the VCX whitout success.
>
>I noticed that the Inheritance of an OLEControl does not work. I mean, I create a subclass (B) base on a subclass (A) of the DBI OCX that I have created. If I delete the DBI OCX subclass (A) and recreate it with new version and the same name, the subclass (B) base on subclass (A) does not inherite the new version.
>
>But instead of subclassing an OCX directely, I create a container class (A) that include an OCX. Then I subclass (B) that container class (A) to include my specifics things. In that case, changing the OCX into the container class (A) also change the OCX into the subclass (B)
>
>The advantage that I see: I only need to delete the OCX and add the new version with the same name into the container and all the subclass base on that class will be upgraded.
>
>The diadvantage that I see: I will always have to resize the container and the OCX.
>
>The fact the the container add one level deeper could be see as an advantage or disadvantage.
>
>What do you thing about that?
Previous
Reply
Map
View

Click here to load this message in the networking platform