Hi,
I have the following situation:
I have a COM enabled application installed on multiple machines. I'm
building a management application for the COM application. Normaly this is
very easy as the .Net framework can create an interop for you which you can
use in your project.
The problem I'm facing is that the COM enabled application can be several
different versions! The set of exposed classes is identical, but some
classes have different api's in different versions of the COM dll. Some new
methods or properties can be added or some old ones can be removed. I'm only
interested in the mutual set of methods and properties.
As you can image I can not create one interop and use it accross all the
different COM dll versions as the implemented API might not be compatible.
Errors like 'A null reference pointer was passed to the stub' are already
common to me. I have also played a little with ILDASM tool, but have not
found an answer there yet.
What I'm looking for, is the right approach to this problem. Is there a way
to create an interop for just the mutual set of properties and methods and
use that in my project? Anyone got any pointers?
Kind regards,
Brinkie
I have the following situation:
I have a COM enabled application installed on multiple machines. I'm
building a management application for the COM application. Normaly this is
very easy as the .Net framework can create an interop for you which you can
use in your project.
The problem I'm facing is that the COM enabled application can be several
different versions! The set of exposed classes is identical, but some
classes have different api's in different versions of the COM dll. Some new
methods or properties can be added or some old ones can be removed. I'm only
interested in the mutual set of methods and properties.
As you can image I can not create one interop and use it accross all the
different COM dll versions as the implemented API might not be compatible.
Errors like 'A null reference pointer was passed to the stub' are already
common to me. I have also played a little with ILDASM tool, but have not
found an answer there yet.
What I'm looking for, is the right approach to this problem. Is there a way
to create an interop for just the mutual set of properties and methods and
use that in my project? Anyone got any pointers?
Kind regards,
Brinkie