Hey,
I have a Java program that calls a C++ program to authenticate users. I would like the program to return either true or false, and if false, update a pointer to an error message variable that i then can grab from the Java program.
Another explination:
The nataive method would look something like this:
public native String takeInfo(String nt_domain, String nt_id, String nt_idca, String nt_password, String &error);
I would call that method here:
boolean canLogin = takeInfo(domain, userID, "", userPass, String &error)
then in my C++ program i would check if the user is authenticated and store it in a boolean, then if false, get the error message and update &error with it. Then return that boolean to my Java program where i could display the error or let the user through.
Any ideas?
Originally i had it so the program would return either "true" or the error message, as a jstring, but my boss would like it as described above.