Article View: borland.public.jbuilder.java.language
Article #15306Can Java create and access a C++ object thru JNI?
From: Mike Schoonover
Date: Wed, 23 Jun 1999 00:00
Date: Wed, 23 Jun 1999 00:00
50 lines
2095 bytes
2095 bytes
This is a multi-part message in MIME format. --------------451A86FDBD58F0E6E6136DF0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The JNI specs are pretty clear about the ability of the native code to create and access Java objects, but can the Java code create and access C++ native objects? I want to use some existing C++ code, but all of the functions are in a class and are designed to be called after instantiating the class. I would like to keep this concept unchanged, but I can't find a way to create or access the object. Can I call a C++ function that will create the object and pass a pointer back to the Java side? If so, where does this object exist - within the scope of the Java program or in some etheral memory space? Can Java call any function defined as part of a C++ class? thanks for any help Mike Schoonover --------------451A86FDBD58F0E6E6136DF0 Content-Type: text/x-vcard; charset=us-ascii; name="mike.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mike Schoonover Content-Disposition: attachment; filename="mike.vcf" begin:vcard n:Schoonover;Mike tel;pager:281-631-1683 tel;fax:713-462-5155 tel;home:281-373-1694 tel;work:713-462-4622 x-mozilla-html:TRUE url:folsomvillage.com org:ICO, Inc.;R&D version:2.1 email;internet:mike@folsomvillage.com title:Programmer note:Hello adr;quoted-printable:;;9400 Bamboo=0D=0A;Houston;TX;77041;USA fn:Mike Schoonover end:vcard --------------451A86FDBD58F0E6E6136DF0--
Technical Details
Message-ID:
<3771B1E3.92A16A3@folsomvillage.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: f74b3,fa9bab9ae892721f,start X-Google-Attributes: gidf74b3,public From: Mike Schoonover <mike@folsomvillage.com> Subject: Can Java create and access a C++ object thru JNI? Date: 1999/06/23 Message-ID: <3771B1E3.92A16A3@folsomvillage.com> X-Deja-AN: 493219638 X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------451A86FDBD58F0E6E6136DF0" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language