Has anyone implemented an Adapter to “talk” with a Microsoft COM component based application written in VB6? I am looking for any help in and tips/classes would be greatly appreciated.
Thanks,
Thomas
Has anyone implemented an Adapter to “talk” with a Microsoft COM component based application written in VB6? I am looking for any help in and tips/classes would be greatly appreciated.
Thanks,
Thomas
The simple answer is yes. The much more complicated answer is how.
Because you will want the adapter to identify and make available any COM object that is registered on the machine, you will need to understand Java, JNI and C++ (for performance and access to I-Dispatch functionality).
There are a number of Java-COM bridges out there that provide a step in the right direction. You will also need to make some decisions regarding COM data types, IN-OUT parameters, objects as parameters, etc.
When planning out configured operations, give thought to the different types of interactions you will want to have with each object and the lifecycle of the object.
A few things to look into: