🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
3 messages
3 total messages Started by Bj�rn Arnold Wed, 24 Aug 2005 07:21
Using a C++BuilderX-Lib in JBuilder
#426
Author: Bj�rn Arnold
Date: Wed, 24 Aug 2005 07:21
7 lines
1073 bytes
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
Re: Using a C++BuilderX-Lib in JBuilder
#428
Author: Alexey N. Solofnenko
Date: Wed, 24 Aug 2005 14:30
18 lines
1313 bytes
You will need to look at JNI: http://java.sun.com/j2se/1.4.2/docs/guide/jni/

- Alexey.

Björn Arnold wrote:
> 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
> 
> 

-- 
Alexey N. Solofnenko
home: http://trelony.cjb.net/
Re: Using a C++BuilderX-Lib in JBuilder
#427
Author: Paul Nichols [TeamB]
Date: Wed, 24 Aug 2005 14:34
21 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads