🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can I access C++ dll from Java

#2552
From: pnichols
Date: Thu, 19 Oct 2000 00:00
28 lines
1401 bytes
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).




"XAVIER COYRAS" <fxcoyras@free.fr> wrote in message
news:8rcma4$8je8@bornews.borland.com...
> I am trying to call from java a function contained in a  Dll written is
C++.
> This function has an argument which type is PCHAR.
> I can't find the corresponding type in Java.
>
> Function in the Dll is function_name(pchar param_name);
>
> How can I access that function in Java?
>
> I have tried
> - private static native void function_name(StringBuffer param_name);
> - private static native void function_name(String param_name);
> - private static native void function_name(Char[] param_name);
>
> and none of them work.
>
> Thanks
>
>
Technical Details
Message-ID: <39eea559_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8rcma4$8je8@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: <39eea559_1@dnews>
X-Deja-AN: 683216664
References: <8rcma4$8je8@bornews.borland.com>
X-Trace: 19 Oct 2000 00:40:09 -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