Re: Different ActiveX versions



gloomygod <gloomygod@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Say that i have made the 1.0 release of the main App, that uses de 1.0
release of the ActiveX, and i install it on a computer.

Then i install newer versions of the App that use newer versions of
the ActiveX, the old App version stops working because (maybe)
something have changed in the ActiveX external API (for example, the
number of parameters in a method), so only the newest version do work
correctly.

That's precisely why a COM interface must _never_ change once published.
If you need a new method with more parameters, implement a new interface
(dervied from the old one, or alongside the old one and accessible via
QueryInterface).

If new version for some reason cannot be made backwards-compatible with
the old, give the new control a different CLSID and make it possible to
install the two side-by-side. Essentially, you are distributing a new,
independent control.

I have read that VS.net 2003 generates a unique ID for the ActiveX in
each compilation

Read where? You must have misunderstood something.

Does anyone know how can i force VS to generate a new ID(and waht od
i have to change in my main app to link with this ID)

This depends on the framework you use to build your control. Is it MFC?
ATL? Something else?

Often, the CLSID is specified in the IDL file on the coclass
declaration.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Trust (was CSS Button Designer)
    ... >the default is for ActiveX controls in a hta to install and run ... You have some control over how your IE handles security. ... it is impractical to sign any non-trivial ActiveX as ... version included a ActiveX that could configure the install to ...
    (alt.html)
  • Re: More before-the-fact advice for 2K and XP?
    ... neither ActiveX nor BHO require Admin permissions to ... given that non-admins have a significant amount of control over ... "Would you like to install the ... With executable white listing, the app doesn't just ...
    (microsoft.public.security)
  • Re: Install the ActiveX control required to view the website
    ... study this part about gettin the Active X control and the BITS. ... looks for updates but goes on and on until I get the error message number ... iuengine and yes I can install the active x Once only. ... click Install ActiveX Control. ...
    (microsoft.public.windowsupdate)
  • RE: ActiveX Control
    ... I'm getting the same problem with Windows Server 2003 Small Business, ... either has anything to do with the ActiveX issues. ... Services.msc MMC control, there is a problem in this method: ... >> Install the ActiveX control required to view the website ...
    (microsoft.public.windowsupdate)
  • RE: Activex control is gone
    ... Solved it by enabling MU WebControl Class in ActiveX ... Install the ActiveX control required to view the website ... Right-click the Internet Explorer Information Bar. ...
    (microsoft.public.windowsupdate)