Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updated .ocx

Status
Not open for further replies.

JDurbin

Programmer
May 17, 2000
341
US
When you update an ocx and no system files need updating and you don't want users to have to reinstall your app do you just mark the old ocx -r, copy new .ocx, remark readonly -or- the same steps and reregister the ActiveX control? If you need to reregister it why? wouldnt that be a problem since you didnt unregister the old? Thanks [sig]<p>John Durbin<br><a href=mailto: john@johndurbin.com> john@johndurbin.com</a><br><a href= </a><br>ICQ #9466492<br>
ICQ VFP ActiveList #73897253[/sig]
 
Hi!

When you register new OCX with the same name as old has, old will be unregistered automatically, unless new OCX have some classes removed (thats not critical).
Registering needed just to register correct CLSID for OCX classes.
However, it is just a good programming point - free old resource, replace it and than allocate again. So better to follow rules exactly as you mentioned.
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Vlad thanks. So you do need to register the now ActiveX control? Just copying over the new one isnt good enough? [sig]<p>John Durbin<br><a href=mailto: john@johndurbin.com> john@johndurbin.com</a><br><a href= </a><br>ICQ #9466492<br>
ICQ VFP ActiveList #73897253[/sig]
 
Most times simple copying helps, specially for OCX. However, better to register it again to be sure. Its also depended on the compiler which built OCX. When you just change little piece of code, that should work. When you add new methods/objects etc., it might require registering. When you make installation program, better to register it and don't leave for fate. [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Hi John,

So you do need to register the now ActiveX control? Just copying over the new one isnt good enough?

Yes, you have to register the new ActiveX. Why? Because, as Vlad eluded to, the new CLSID for the OCX class needs to be update in the registry, as well as, the version of the OCX. [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>Focus on the solution....Not the problem.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top