Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distributing an ActiveX control (2)
Message
From
27/01/2000 08:40:44
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00323456
Message ID:
00323478
Views:
25
>Hi,
>
>I am about in the same situation as Paul Robinshaw, i.e. I have created an activeX control in VB I use in VFP. My problem is slightly different:
>
>At first everything worked fine, but now every time I rebuild the control I have to tell VFP to use that control, and I have to add the controls to my form again, because if I open the form I get the 'class not registered' error message. The same thing if I want to run the application. Running regsrv32 does not help. Fortunately everything is still in test.
>
>Does anyone know what I have done wrong? (As I said, it used to work).

See my reply to Paul - in all probability, the old version of the control does not have the same CLSID as the new version, so they are not programamtically and functionally identical, in the same way that two different versions of ListView or TreeView would be the same.

If the two versions share a common VersionIndependentProgID, and you instantiated the control programmatically using the VersionIndependentProgID rather than through the Visual form interface, there would be workarounds, but unless the interfaces are indetical, or you do something programmatically to bind the control late through the VersionIndependentProgid, you're stuck either readding it, or writing code to hack the SCX, which is no better, and no help if you've already deployed the SCX compiled into .EXE
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform