Re: Different ActiveX versions
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 15 May 2007 17:15:32 -0400
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
.
- Follow-Ups:
- Re: Different ActiveX versions
- From: gloomygod
- Re: Different ActiveX versions
- Prev by Date: Re: How to detect if client or server are not responding
- Next by Date: Re: How to detect if client or server are not responding
- Previous by thread: Re: How to detect if client or server are not responding
- Next by thread: Re: Different ActiveX versions
- Index(es):
Relevant Pages
|