Hi,
I'm quite confused by the different flavors of string and file classes.
Can anyone show me how to create an nsIFile object given a directory path, say /home/adele?


I used
nsCOMPtr<nsIFile> profileDir(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID));
rv = profileDir->InitWithPath(nsDependentCString("/home/adele"));

and got
no matching function for call to `nsDerivedSafe<nsIFile>::
   InitWithNativePath(nsDependentCString)'

Thanks,
Adele

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to