Hi, As part of a C++ XPCOM component I'm writing (using VS .Net) I need a function in my code to be called at regular time intervals. I was hoping that there was something in XPCOM that I could use to do this. I had a look around and I see several possibilities but I'm not sure which is the right one to use. The most likely one seems to be nsITimer. Unfortunately I can't find to many examples of how to use it ;
A) Is nsITimer the right thing to use or is there something better?
It is pretty much the only thing available at this point, yes. However, it is not a frozen interface, so it may change in the future (in fact, it probably will change). To use it, get a source tree from the version of Firefox/Mozilla that you want to work with, and use xpidl to compile the IDL file there into a header file that your C++ code can #include.
--BDS _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
