Jon Smirl wrote: > I'm looking at Transformiix and adding the ability to call external XPCOM > functions. Transformiix can get a component ID and CreateInstance the > component. Now I have a string for the method name and serveral parameters > which may or may not match what the functions needs. Is there an easy way to > call a method via a string based name from C++? Or do I have to write all of > the code to read the typelib and build the call? > > -- > Jon Smirl > [EMAIL PROTECTED]
I think you'd have to go the typelib route. If you were truly evil, you could build a JS component on the fly can called the real function; then have your C++ code call the JS component letting XPConnect do the mapping for you. Now *that* would be a hack. -rick
