Peter Parente wrote: > Is it possible to use XPCOM from straight C code? If so, can someone > please convert some or all of the following code as an example?
I really don't recommend trying. It's theoretically possible to call XPCOM methods from C using xptcall, but that is very slow compared to making direct method calls. If you only care about one platform, you could alternately emulate a C++ virtual table using C structs, but that's very painful (the C++ vtable layout varies per-platform and per-compiler, so it's pretty fragile as well). --BDS _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
