JNA is not a COM wrapper. There are other projects (some pure Java)
which provide COM interoperability.
JNA will allow you to call any functions exported from ole32.dll, but
it won't likely help you with COM interface dispatching. In order to
do COM dispatching, you'd need some more glue code to obtain dispatch
function addresses from the COM object, although once you had one of
those you could probably wrap it in a JNA Function object and call it.
From what I understand of COM, the interfaces are just blocks of
function pointers, but the argument marshalling is a bit different
than raw C calls.
On Jul 18, 2007, at 1:06 PM, José Ramón Vargas wrote:
Ok thanks for the quick answer, the thing is I’m accessing the
ole32.dll from windows and I’m trying to instantiate some of the
interfaces that are declared there, I’m using CoCreateInstance
function to create the interfaces and I get a Pointer to the
interface generated, the thing is I do not know the way to
instantiate the interface or the interface functions in java, can
you help me please?, thank you.