2 messages in net.java.dev.jna.usersRe: [jna-users] JNA use on COM objects
FromSent OnAttachments
Mark AbbottOct 31, 2008 12:32 pm 
Timothy WallOct 31, 2008 12:55 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] JNA use on COM objectsActions...
From:Timothy Wall (twal@dev.java.net)
Date:Oct 31, 2008 12:55:48 pm
List:net.java.dev.jna.users

Unless the interface is straight C (or you're willing to write a native wrapper), you'd have to reimplement all the bits that com4j and jacob have implemented to support different aspects of COM.

JNA has nothing built-in to help you with COM types or dispatch interfaces, so you'd likely get more mileage out of tweaking com4j or jacob to get what you want.

On Oct 31, 2008, at 3:32 PM, Mark Abbott wrote:

I need to access a COM object (SAPI 5.3, Microsoft’s Speech API) from Java. I’ve been looking at some Java-COM integration tools. Com4j apparently doesn’t handle some aspects of SAPI that I need. Jawin doesn’t seem to be supported anymore. Jacob is still a possibility, but it’s a little fuzzy whether it handles the necessary events/callbacks correctly without leaking.

So I’m wondering about going a little lower-level with JNA. How reasonable is it to use JNA to access a COM object?

Mark Abbott