Rajendra Prasad Murakonda wrote:
Oh! OK. But what all functions can I use when I use openANSIFileDesc()?
Those are standard C functions. So you can probably use all of them.
(Actually you can always use all of them, the question is just how
portable you want to be :) )
More
broadly, what all features of C++ can I use in XPCOM? Is there any
reference
available somewhere? In the portability guide, it's mentioned that **don't
use C++ standard library features including iostream(I haven't read the
guide fully).
Yeah. FILE* is not iostream though. The portability guide is the only
reference I know of, and it's probably slightly outdated (now in 2006
you can use more of C++ than you could when the guide was written)
And when I use nsIFile::directoryEntries, is there any direct way of
getting
number of entries in the directory other than iterating and counting the
entries? Is it not possible to add a function to the nsISimpleEnumerator to
get the number of entries it is pointing to?
There's no direct way and probably no way to implement that efficiently
either.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom