Article View: borland.public.jbuilder.java.api
Article #2515How can I access C++ dll from Java
From: XAVIER COYRAS
Date: Tue, 03 Oct 2000 00:00
Date: Tue, 03 Oct 2000 00:00
16 lines
1030 bytes
1030 bytes
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:
<8rcma4$8je8@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,1f62b3b052d8a190,start X-Google-Attributes: gid1089d0,public From: "XAVIER COYRAS" <fxcoyras@free.fr> Subject: How can I access C++ dll from Java Date: 2000/10/03 Message-ID: <8rcma4$8je8@bornews.borland.com> X-Deja-AN: 677030632 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.api