Hi all, I don't know if this is the right group, but since I could not find something specific for plugins and JAVA/JRI, I'll try my question here first.
I have an ActiveX control that works just fine in IE. For flexibility reasons, some of the methods in it's interface have VARIANT as in or out params. I want to have the SAME interfaces in Netscape (i.e the same HTML page should work on both IE and Netscape identical for the HTML programmer). I developped a Live-Connect plugin that calls the same native methods used in ActiveX. The problem is that I don't know how to translate from/to VARIANT types. Somebody suggested that I should use Java Object type. Fine. I declared Object params in my Java Plugin derived class where I was using VARIANTs. But how do I translate from my VARIANT to the struct java_lang_Object* that gets passed to me in my native method? Please point me to a place where I can find more info about this. Thanks, Florin. PS: Please don't suggest com.ms.com Variant since thhat will work with MS JVM only. Also, I don't want to use XPCOM since it will not work on NS 3.x, 4.x PPS: here is the specific place where I have troubles: extern JRI_PUBLIC_API(struct java_lang_Object*) native_GetProperty(JRIEnv* env, ...<more params>) { VARIANT value = {0}; // Call a library function to get the requested property into value ::MyGetProperty(&value); // What now?!!! How do I convert from VARIANT to struct java_lang_Object* ? }