× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Another option that I have used for a recent project.  I had to automate
using a Canon Powershot G2 camera.  I wanted to use java for the app but the
Canon SDK came in C and COM only.   I started using COM but quickly found it
easier to simply write JNI wrappers to all the C functions that I needed
(will work for C++ as well).  I at first was leary of using JNI, had heard
lot's of negative things: error prone, poor performance.  My implementation
was using JNI as a thin wrapper to allow my java code to call all the Canon
SDK functions directly.  In other words I didn't write much code in C
besides function call proxies.  The main idea being get the data into java
and do my processing there.  It has worked great and could be a good
alternative depending on the complexity of the SDK versus the COM object.
In the case of the Canon SDK the com object was not as funcitonal as the
straight SDK.

regards,
Glen




----- Original Message -----
From: "Hatzenbeler, Tim" <thatzenbeler@xxxxxxxxxxxxx>
To: "'Java Programming on and around the iSeries / AS400'"
<java400-l@xxxxxxxxxxxx>
Sent: Wednesday, February 26, 2003 6:43 PM
Subject: java COM Bridge


> I was wondering if this is possible, at a 'free' or at a reasonable price.
>
> I would like to use java, runnning on a win32 machine... So native calls
are
> ok, for this application...  I would like to use java and the standard jvm
> to call 'COM' componets, and API's.
>
> Purpose:  I need a way to read the WinFax Log Objects, and in their SDK,
> they only offer a VB and a C++ example, and they don't offer a true java
api
> option.  I decided to spend some time and work with visual basic, and
write
> this program...  And I can honestly say, at least on this day of my life,
I
> never want to use VB again... The error messages are so vague, I have no
> idea, if my program is correct...
>
> It does work though, but I would like to re-write it in java, if it was a
> simple venture...
>
> Thanks for any ideas or thoughts, tim
>
> I searched the WEB on this, and saw a few things, but they were all dated
> back in '99  so either it no longer possible, or it's not called a bridge,
> so my searches are all wrong..
>
>
>
>
>
> This e-mail message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain confidential or privileged
> information.  Any unauthorized review, use, disclosure or distribution is
> prohibited.  If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy the message.
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.