Article View: borland.public.jbuilder.java.language
Article #15365Re: How do I call a CBuilder 4.0 DLL from Java
From: Mike Adamakis
Date: Mon, 21 Jun 1999 00:00
Date: Mon, 21 Jun 1999 00:00
37 lines
1647 bytes
1647 bytes
You use javah to get a C/C++ header file with the proper function names for
your dll.
javah -jni <javafile.class>
I found "Essential JNI: Java Native Interface" by Rob Gordon (Prentice Hall
PTR, 1998) to be a very usefull reference.
Mike Schoonover wrote:
> I wish to access a C++ Builder 4.0 dll from Java 2.01. I read all three
> paragraphs
> about this in the help (many times). I cannot find any further help on
> the Borland site.
>
> Can anyone point me to more documentation or give me an example?
>
> I followed the explanation in the help, but I am not sure how to compile
> the DLL to insure compatibility. When I attempt to call a function in
> the DLL, I get an error.
> Are the names mangled? Do I need to use javah tool for anything
> (briefly mentioned in the help)?
>
> Any help is appreciated.
>
> thanks,
> Mike Schoonover
--
---
Mike Adamakis
Koam Engineering Systems
2645 Financial Court, Suite A
San Diego, CA 92117
(619) 272-1219 (office)
(619) 272-6393 (fax)
www.kes.com
adamakis@nosc.mil
Technical Details
Message-ID:
<376E9B0A.E1613984@nosc.mil>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<376C480C.36F205C4@folsomvillage.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ffbce02944f5e6d0 X-Google-Attributes: gidf74b3,public From: Mike Adamakis <adamakis@nosc.mil> Subject: Re: How do I call a CBuilder 4.0 DLL from Java Date: 1999/06/21 Message-ID: <376E9B0A.E1613984@nosc.mil> X-Deja-AN: 492230757 Content-Transfer-Encoding: 7bit References: <376C480C.36F205C4@folsomvillage.com> To: Mike Schoonover <mike@folsomvillage.com> Content-Type: text/plain; charset=us-ascii Organization: Koam Engineering Systems Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language