Re: CoCreateInstance return REGDB_E_CLASSNOTREG




"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


.



Relevant Pages

  • Problem with performance of IDE devices
    ... index 0, dll tcpstk.dll, context 0x3f8a5c9 ... 0x801abbe8: FSREG: Mounted ROM portion of boot registry ... 0x8014abcc: FSREG: Invalid HKEY 0x00000000 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Permission denied on dll in ASP.NET
    ... (because this is anonymous IIS ... account would be used for logon and your application would run in that ... > I have an ASP.NET web application that calls a middle-tier dll. ... "Access to the registry key ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: HowTo: Unregister a DLL/Control when the File no longer Exists
    ... Tony Proctor wrote: ... recorded in the registry. ... However, matching them up without the original DLL ... The main project references one of the DLLs, ...
    (microsoft.public.vb.general.discussion)
  • Re: How do I load a third party driver in Windows CE 6.0
    ... I had a look at the link to the documentation you sent a link to and I ... I would get a dll to load. ... What do I have to do in the registry to get my dll to ... then myusbdevicedriver.dll will get loaded when I attach my USB device. ...
    (microsoft.public.windowsce.embedded)
  • Re: HowTo: Unregister a DLL/Control when the File no longer Exists
    ... projects, in the correct order, and deals with this exact situation Karl ... "registry bloat" by not cleaning the registry properly over a period ... The main project references one of the DLLs, ... another DLL. ...
    (microsoft.public.vb.general.discussion)