C
clusardi2k
Question: How should I send a string from C++ to java.
When I send a string (std::string) from the C++ code to the java code (String), I have to count (on the java side) the number of characters that I expect.
If I don't take a specific number of characters I get more characters than I want on the java side. The extra characters are garbage.
I tried appending the standard end of string ("\0") in C++ code and sending the string to java code, but the problem was not resolved.
Any ideas,
Thanks,
When I send a string (std::string) from the C++ code to the java code (String), I have to count (on the java side) the number of characters that I expect.
If I don't take a specific number of characters I get more characters than I want on the java side. The extra characters are garbage.
I tried appending the standard end of string ("\0") in C++ code and sending the string to java code, but the problem was not resolved.
Any ideas,
Thanks,