Article View: borland.public.jbuilder.java.language
Article #427Re: Using a C++BuilderX-Lib in JBuilder
From: Paul Nichols [TeamB]
Date: Wed, 24 Aug 2005 14:34
Date: Wed, 24 Aug 2005 14:34
21 lines
1647 bytes
1647 bytes
"Bj�rn Arnold" <bas@bjoern-arnold.de> wrote in message
news:430c1f11@newsgroups.borland.com...
> Hi,
>
> I'm new to Java and JBuilder. What I like to know is if there is a way to
> "include" code from a library written in C++BuilderX?
> Thanks in advance!
>
> Bj�rn
>
Basically two ways to do this.
One is to use the System.loadLibrary("<libraryName>"). This can be used to
call the native library and use the resulting outputs from the native
libary.
If you need to pass function params and the like, you will need to use JNI.
Here is a good tutorial on JNI.
http://java.sun.com/docs/books/tutorial/native1.1/index.html
Technical Details
Message-ID:
<430c8550$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!cyclone.bc.net!news.alt.net!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<430c1f11@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1b7ddaba66277a60 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII Reply-To: "Paul Nichols [TeamB]" <paul@comp.net> From: "Paul Nichols [TeamB]" <paul@comp.net> Newsgroups: borland.public.jbuilder.java.language References: <430c1f11@newsgroups.borland.com> Subject: Re: Using a C++BuilderX-Lib in JBuilder Date: Wed, 24 Aug 2005 09:34:20 -0500 Lines: 24 Organization: paul@comp.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 66.20.208.2 Message-ID: <430c8550$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124894032 66.20.208.2 (24 Aug 2005 07:33:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!cyclone.bc.net!news.alt.net!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail