cout << "  enumerated " << aKey << " = \"" << str.get() << "\"" << endl;
printf("  enumerated %u = \"%s\"\n", aKey, str.get());
nsIEnum(const PRUint32& aKey, nsCOMPtr<IFoo>& aData, void* userArg) {  nsCAutoString str;  aData->GetString(str);  cout << "  enumerated " << aKey << " = \"" << str.get() << "\"" << endl;  return PL_DHASH_NEXT;}