Article View: borland.public.jbuilder.java.api
Article #2387Re: Using a DLL in Java ???
From: Joi Ellis
Date: Fri, 20 Oct 2000 00:00
Date: Fri, 20 Oct 2000 00:00
32 lines
1752 bytes
1752 bytes
Theodoros Kanakaris <bill@diolkos.gr> wrote:
> How can i call a DLL file?
> After this how can i call a method from this DLL?
> The name of DLL file is SRev.DLL
> The Description of this method in DLL is :
> SRevCommand (Handle, Cmd, CmdLen, DataIn, DataInLen, DataOut,
> DataOutLen);
> LPINT Handle // Pointer on a 32 bit signed integer
> LPSTR Cmd // Pointer on a zero terminated string
> LPINT CmdLen // Pointer on a 32 bit signed integer
> LPSTR DataIn // Pointer on a zero terminated string
> LPINT DataInLen // Pointer on a 32 bit signed integer
> LPSTR DataOut // Pointer on a zero terminated string
> LPINT DataOutLen // Pointer on a 32 bit signed integer
> If exist a sample it will very good for me
You need JNI for this. See:
http://java.sun.com/products/jdk/1.2/docs/guide/jni/spec/jniTOC.doc.html
--
Joi Ellis Software Engineer
Aravox Technologies joi@aravox.com, gyles19@visi.com
No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson
Technical Details
Message-ID:
<8sppef$anj10@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39f03499_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,282e680e28a1d0e9
X-Google-Attributes: gid1089d0,public
From: Joi Ellis <joi@joi.aravox.com>
Subject: Re: Using a DLL in Java ???
Date: 2000/10/20
Message-ID: <8sppef$anj10@bornews.borland.com>
X-Deja-AN: 683838853
References: <39f03499_1@dnews>
Organization: Another Netscape Collabra Server User
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.14-5.0 (i686))
Newsgroups: borland.public.jbuilder.java.api