Article View: borland.public.jbuilder.java.api
Article #2378Re: How can I access C++ dll from Java
From: pnichols
Date: Thu, 19 Oct 2000 00:00
Date: Thu, 19 Oct 2000 00:00
27 lines
1707 bytes
1707 bytes
No, not Java Strings... C++ and C Strings ... In other words PChars!!! "Joi Ellis" <joi@joi.aravox.com> wrote in message news:8sn41r$cnf7@bornews.borland.com... > pnichols <pwnichols@mail.gw.total-web.net> wrote: > > I am not sure whether you can do this or not either (without extra C > > coding), but all pchars are /0 terminated...They are, as well, pointers to a > > character based string (actually array of chars). > > Java string objects are not null-terminated, and they are stored in > a Unicode format which must be translated back to the platform's > native encoding before it can be used. > > You need a JNI Glue layer to convert your Java objects and primitives > into the types required by your C++ dll.. > > -- > 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:
<39ef2bc4$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8rcma4$8je8@bornews.borland.com> <39eea559_1@dnews> <8sn41r$cnf7@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,1f62b3b052d8a190 X-Google-Attributes: gid1089d0,public From: "pnichols" <pwnichols@mail.gw.total-web.net> Subject: Re: How can I access C++ dll from Java Date: 2000/10/19 Message-ID: <39ef2bc4$1_2@dnews> X-Deja-AN: 683473591 References: <8rcma4$8je8@bornews.borland.com> <39eea559_1@dnews> <8sn41r$cnf7@bornews.borland.com> X-Trace: 19 Oct 2000 10:13:40 -0800, 24.90.4.56 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.api X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400