[597] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (Raymond Harrison - TCI/AIT)
Wed Jul 5 19:51:31 1995

Date: Wed, 5 Jul 1995 17:30:53 +0700
From: rharriso@elmer.tcinc.com (Raymond Harrison - TCI/AIT)
To: java-interest@java.Eng.Sun.COM

Hello and Help!
	
	I am working with JAVA and am using
Native methods to create an interface to SYBASE's
DBLIB and CTLIB. This will allow us to create our
own DB protocol for users in the field who will
use HOTJAVA to access and display results from
the database using this new secure protocol.
	I must admit that I have used C more than
C++, and my knowledge of OBJECT methodolgies is
just beginning to grow... so please bare with me -
I learn fast.
	Anyway, I have an interface written in JAVA
which calls a native method, written in C, which calls
DBLIB routines, which when returns an argument containing
an array of results (The native interface calls this 
HArrayOfStrings)... This is passed as a function argument.
This function is called SybRes and takes a String[] argument.


The definition as found in my interface file is as follows:

	public native void dbresults(String str[]);
	.
	.
	.
	.
	.
	public void SybRes(String str[]) {
		dbresults(str);
		return;
	}


The "Test" program calls this routine in the 
following manner.....

	public static void main(String args[]) {

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post