2 messages in net.java.dev.jna.usersRe: [jna-users] Problem getting new S...
FromSent OnAttachments
Muhammad NoorApr 13, 2009 4:49 am 
Timothy WallApr 13, 2009 5:30 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Problem getting new String value from native codeActions...
From:Timothy Wall (twal@dev.java.net)
Date:Apr 13, 2009 5:30:45 am
List:net.java.dev.jna.users

Use a byte[] as the argument, then use Native.toString(byte[]) to extract the native string. Java Strings are immutable.

https://jna.dev.java.net/#char_buffer

On Apr 13, 2009, at 7:50 AM, Muhammad Noor wrote:

Hi,

I have a method in C++ having prototype as follows:

extern "C" __declspec(dllexport) void ussdGetErrorString(int nErrorCode,char *pszErrorString)

In java i have defined above method as follows:

void ussdGetErrorString (int nErrorCode, String pszErrorString); My Problem is that I am Unable to get New pszErrorString value in My Java Code after calling "ussdGetErrorString" method.

Pls tell me where am I doing wrong.

Regards,

Noor.