Re: CoCreateInstance return REGDB_E_CLASSNOTREG
- From: "Roy Fine" <rlfine@xxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2005 15:33:39 -0400
"Sam Shi" <sam@xxxxxxxxxxxxx> wrote in message
news:unbRjsBcFHA.2756@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I hava a com dll components. It works fine under win xp. but return
> REGDB_E_CLASSNOTREG while under win 2003. Anyone can give me a clue?
>
> I've registered this dll under win 2003 using regsrv32.exe. and my account
> is Administrator.
>
>
Sam, here are just a couple of hints that I always try in similar
curcumstances:
Try CoGetClassObject, with the class id of the com object, and request
IClassFactory interface.
Make sure that you have specified the UUID of the com object, not the
interface - try using CLSIDFromProgID, after you have verified that the Prog
ID is there, and it correctly references the right class id.
look in the registry in HKEY_CLASSES_ROOT\\CLSID to verify that the classid
was registered.
Make sure that the path specified in InProcServer32 (assuming it is a DLL)
is valid and that the account your are running from has proper permissions
on the path.
regards
Roy Fine
.
- References:
- CoCreateInstance return REGDB_E_CLASSNOTREG
- From: Sam Shi
- CoCreateInstance return REGDB_E_CLASSNOTREG
- Prev by Date: Re: CDatabase CRecordset - How to get the number of rows?
- Next by Date: Re: Deriving from CString...?
- Previous by thread: Re: CoCreateInstance return REGDB_E_CLASSNOTREG
- Next by thread: Re: CoCreateInstance return REGDB_E_CLASSNOTREG
- Index(es):
Relevant Pages
|