Print a Java String
Tom Tromey
tromey@redhat.com
Tue Feb 5 13:50:00 GMT 2008
>>>>> ">" == abhi123 <ac0030313@techmahindra.com> writes:
>> I am able to catch this e but cout<<e->toString() displays a address or some
>> hex output but I want to display the toString output. Is there a way to do
>> this any help is much appreciated.
You need to convert the Java String to a C string. See the CNI manual
for some information on this; it is pretty similar to how you would do
it using JNI.
Tom
More information about the Java
mailing list