Category: C++
-
C++, Java Native Interface (JNI)
In my recent Java Native Interface (JNI) adventures, I have discovered that when calling the JNI function NewObject in C++, you need to cast the variables to their corresponding jni type. I didn’t have to do this when using C and jni.Example:C++ struct ABC { double x, double y }; Using C++ create a jni…
-
Use C++ to pass a function a base class and return a derived class, user defined variables
Sorry I haven’t had any new apache batik/svg updates. I’m into some C++ work now and haven’t had time to work on it. Pointers, I hate them, definitely a pain in the butt.I searched all day on the internet and couldn’t find any examples showing me how to do what I wanted. I finally took…