How can this scheme be useful for you? If that COM component adds new
features (interfaces or methods?) you can't call them with your existing
code anyway because your code doesn't know about them. Your VB.NET program
is compiled with a reference to an interop assembly, so you can't use
anything really new in the COM component that it describes unless you
re-compile your program with a reference to the new interop assembly that
exposes the new methods etc. If you were using late-binding calls (like
vbscript) you'd have some hope of discovering new interfaces and methods,
but not with a compile-time reference to an interop assembly.
One of the key points of COM is that upgrades to components must be
compatible with older existing clients, so your existing code will continue
to work because you're calling your current interop assembly that is then
calling the methods in the upgraded COM component. The code in those methods
can change, but if new interfaces and methods are added you won't see them
because you're not compiled with a reference to the new interop assembly. So
you don't need a new interop assembly to call corrected code in the upgraded
COM component, and you need to be compiled with a reference to the new COM
component's new interop assembly before you can call new methods (if you're
not using late binding).
--
Phil Wilson
[Microsoft MVP-Windows Installer]
[quoted text, click to view] "Carmine Cairo" <carcairo@gmail.com> wrote in message
news:1163093379.724925.251220@i42g2000cwa.googlegroups.com...
>
>
> TDC wrote:
>
>> or you can call the same functionality
>> via the System.Runtime.InteropServices.TypeLibConverter class.
>
> OK, you are the best :-)
> Thanks a lot.
>
>>
>> HTH,
>> Tom
>
> Carmine
>