kTestClassIID,
NS_GET_IID(ITestClass),
int main(int argc, char **argv) {  nsresult rv;  rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup,                                        NULL /* default */);  if (NS_FAILED(rv)) return rv;  RegisterTestFactories();  ITestClass *t = NULL;  nsComponentManager::CreateInstance(kTestFactoryCID,                               NULL,                               kTestClassIID,                               (void **) &t);  if (t != NULL) {    t->Test();    t->Release();  } else {    cout << "CreateInstance failed\n";  }  t = NULL;  nsComponentManager::CreateInstance(kTestLoadedFactoryCID,                               NULL,                               kTestClassIID,                               (void **) &t);  if (t != NULL) {    t->Test();    t->Release();  } else {    cout << "Dynamic CreateInstance failed\n";  }  nsComponentManager::FreeLibraries();  return 0;}