8 messages in net.java.dev.jna.usersRe: [jna-users] Pointer to native int...
FromSent OnAttachments
José Ramón VargasJul 17, 2007 3:14 pm 
Timothy WallJul 17, 2007 4:06 pm 
José Ramón VargasJul 18, 2007 10:06 am 
Timothy WallJul 18, 2007 11:13 am 
José Ramón VargasJul 18, 2007 3:11 pm 
Timothy WallJul 18, 2007 3:53 pm 
Daniel KaufmannJul 18, 2007 8:30 pm 
张久安Jul 18, 2007 8:50 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Pointer to native interface??Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 18, 2007 11:13:11 am
List:net.java.dev.jna.users

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.