🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17518

create new object within native method

#17518
From: cd-europe
Date: Fri, 06 Nov 1998 00:00
10 lines
744 bytes
Hi,

I want to create a new object in a native implementation (written in C) of a
function. This new instance will then be returned by this function.
How can I create a new object other than a String or an array?
I found the function NewObject() in jni.h. How does it work?

Thanks in advance!

Bas
Technical Details
Message-ID: <71uuer$a0h$1@news.Kijfhoek.NL.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2f99fc571b517439,start
X-Google-Attributes: gidf74b3,public
From: "cd-europe" <cdrom-dev@cdeurope.nl>
Subject: create new object within native method
Date: 1998/11/06
Message-ID: <71uuer$a0h$1@news.Kijfhoek.NL.net>
X-Deja-AN: 409023103
Organization: NLnet
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language