microboard
asked on
ActiveX - register new controls
I have an control that I updated from version 1.0.0 to version 1.1.0. I removed the old OCX by unregistering it then deleting it, then I set the new control in the SYSTEM directory and registered it. The problem is that Visual Basic would not load my old forms that used my old OCX. Why is that? I can go to COMPONENTS and then recheck the control and it works fine (though I have to add the control again to my form), but how am I suppose to update a control and not have to worry that Visual Basic will not load it?
ASKER
It didnt solve the problem. When I reload my project after updating my control in the SYSTEM directory, the error I get for my project is this:
The property name _ExtentX in AniCur1 is invalid.
This seems to be the big problem. I have the "Project Compatibility" set but for some reason it's not working the way I think it should be. Hope you can help solve this. Thanks.
The property name _ExtentX in AniCur1 is invalid.
This seems to be the big problem. I have the "Project Compatibility" set but for some reason it's not working the way I think it should be. Hope you can help solve this. Thanks.
Project compatibilty should be used when you are debugging your applications in the VB IDE.
When you want to release your second version of the component you should compile the project with Binary Compatibilty giving it the reference of your first version.
Refer to the article "Building, Versioning, and Maintaining Visual Basic Components" from MSDN which explains the differences. http://msdn.microsoft.com/library/techart/msdn_bldvbcom.htm
When you want to release your second version of the component you should compile the project with Binary Compatibilty giving it the reference of your first version.
Refer to the article "Building, Versioning, and Maintaining Visual Basic Components" from MSDN which explains the differences. http://msdn.microsoft.com/library/techart/msdn_bldvbcom.htm
Also look up
Providing a Reference Point for Binary Version Compatibility
http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbcon98/vbconprovidingreferencepointforcompatibility.htm
Providing a Reference Point for Binary Version Compatibility
http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbcon98/vbconprovidingreferencepointforcompatibility.htm
ASKER
manoj_r, the articles certainly were informative. Things seem to be working fine here now! I need to send you the points so propose an answer so that I can do the transferring.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
This will solve your problem and will update your control automatically when you reload your project that uses this control.