Added manual registration for EventQueue and PersistentProperties. Sigh.

This commit is contained in:
erik%netscape.com 1999-05-26 22:08:27 +00:00
Родитель 1d29571154
Коммит 4a8385b941
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -16,6 +16,9 @@
* Reserved.
*/
#define NS_IMPL_IDS
#include "nsIProperties.h"
#include "nsIStringBundle.h"
#include "nsIEventQueueService.h"
#include "nsILocale.h"
@ -26,8 +29,10 @@
#define TEST_URL "resource:/res/strres.properties"
#define NETLIB_DLL "netlib.dll"
#define RAPTORBASE_DLL "raptorbase.dll"
#define XPCOM_DLL "xpcom32.dll"
static NS_DEFINE_IID(kEventQueueCID, NS_EVENTQUEUE_CID);
static NS_DEFINE_IID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_IID(kIEventQueueServiceIID, NS_IEVENTQUEUESERVICE_IID);
static NS_DEFINE_IID(kINetServiceIID, NS_INETSERVICE_IID);
@ -40,6 +45,9 @@ main(int argc, char *argv[])
{
nsresult ret;
nsComponentManager::RegisterComponent(kPersistentPropertiesCID, NULL, NULL,
RAPTORBASE_DLL, PR_FALSE, PR_FALSE);
nsIStringBundleService* service = nsnull;
ret = nsServiceManager::GetService(kStringBundleServiceCID,
kIStringBundleServiceIID, (nsISupports**) &service);
@ -48,8 +56,10 @@ main(int argc, char *argv[])
return 1;
}
nsComponentManager::RegisterComponent(kEventQueueServiceCID, NULL, NULL, XPCOM_DLL,
PR_FALSE, PR_FALSE);
nsComponentManager::RegisterComponent(kEventQueueCID, NULL, NULL,
XPCOM_DLL, PR_FALSE, PR_FALSE);
nsComponentManager::RegisterComponent(kEventQueueServiceCID, NULL, NULL,
XPCOM_DLL, PR_FALSE, PR_FALSE);
nsIEventQueueService* pEventQueueService = nsnull;
ret = nsServiceManager::GetService(kEventQueueServiceCID,
kIEventQueueServiceIID, (nsISupports**) &pEventQueueService);