Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

long long array

Status
Not open for further replies.

25884

Programmer
Mar 12, 2001
46
0
0
AP
I have an array of 'long long' type in C.
I want to return this back to java using JNI, what should be the return type of my JNI method for it to accept a long long type uni dim array?
I tried using jlongArray, but it gives me
" return value type does not match the function type
 
Well the Java long is :

8 bytes signed (two's complement). Ranges from -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807.

I've no idea how many bytes a "long long" is, but I doubt it is the above. You need to match your C types to java types. For example, a C char = Java byte.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top