I don't know if this is possible or not, but I have a dll file, which is an external library. In that dll file, I have a class named Calculator, which is stored in a namespace call "myProject.tool".And I want to call this method in the Calculator class:
int doPlus(int num1, int num2){...};
In this specific case, can I called the doPlus method directly from java code and ignored the Calculator class and the namespace by using
public native int doPlus(int num1, int num2);
If I can't, does it mean that I need to have the Calculator object in java? I wonder how can I do it ? Do I need an appropriated java object ?And then how can I call the doPlus method?
I know this question may sounds stupid, but it would be great if you can help me to solve it. Any solution or suggestion is more than welcomed.
Thank you very much.