Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update an ole-ActiveX by changing classid
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
How to update an ole-ActiveX by changing classid
Miscellaneous
Thread ID:
00881194
Message ID:
00881194
Views:
54
Subject: How can I update an ole-ActiveX by changing classid?

Problem: My VFP7 application uses a third-party (softelvdm.com) ActiveX tree-view control on many forms. I need to update my forms with the vendor's Unicode version, but I don't want to do it manually, as this involves resetting many different properties to match and copying code from the old version's events into the new control's events. The vendor states that upgrading is as simple as changing the classid and recompiling: "for Visual Basic applications, open the project file (.VBP) in a text editor and modify the line that specifies the old classid with the classid of the new version (e.g. Object={6ABB9000-48F8-11CF-AC42-0040332ED4E5}#4.0#0; SFTTREEX.OCX). Then open the project and compile. All forms are automatically updated to use the new version. " Is it possible to do something similar for a VFP form? There is no classid property for VFP's OLEControl but there is a readonly property named "OleClass" which reflects the version of the ActiveX control. No help there. I tried modifying the OLE2 field in SCX table, which contains this value:OLEObject = C:\WINNT\SYSTEM32\SFTTREEX.OCX, (notice, no reference to classid as depicted for Visual Basic). I used COMPILE FORM after I changed the value to reflect the Unicode version's name ( it is a different file name), but the form still contains the old version.

The vendor states that "most development tools allow access to the classid used for a control on a form or dialog." How can I do this in VFP 7?
Next
Reply
Map
View

Click here to load this message in the networking platform