🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1315

Re: basic JNI question

#1315
From: John McGrath TeamB
Date: Fri, 01 Mar 2002 01:39
26 lines
1897 bytes
On Thu, 28 Feb 2002 17:42:18 -0000, Roger Woodward wrote:

> How does Java call functions residing either within a DLL or
> OCX component.  Is this a simple process and are there any
> obvious pitfalls. I know that JNI exists but nothing about
> it (Ive an idea that this is what I need to investigate) so
> if you know of a good web reference as a starting point for
> reading I would be very grateful.

Essentially, JNI allows you to call a method from a DLL.  The calling 
convention is specified by JNI, so you will not be able to call 
arbitrary methods.  Typically, if you need to call some existing code, 
you will write a small wrapper method that conforms to JNI specs.

Here is some information on JNI.  This is included in the JDK package.

   http://java.sun.com/products/jdk/1.4/docs/guide/jni/

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.16e8a5b474d10d6c98b3b2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!transit.news.cuci.nl!cleanfeed.casema.net!leda.casema.net!fr.clara.net!bigger.fr.clara.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c7e6bc5_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,bc41267c05921d85
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-02-28 17:40:53 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: basic JNI question
Date: Thu, 28 Feb 2002 20:39:30 -0500
Message-ID: <MPG.16e8a5b474d10d6c98b3b2@newsgroups.borland.com>
References: <3c7e6bc5_2@dnews>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1014946769 209.92.40.60 (28 Feb 2002 17:39:29 -0800)
Lines: 26
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!transit.news.cuci.nl!cleanfeed.casema.net!leda.casema.net!fr.clara.net!bigger.fr.clara.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews