>I have the c000005 problem sometimes too.
>So I ran the code you posted to FAQ (that checks for dcom)
>and got an error on line
>
>IF oReg.OpenKey(DCOMKEYSTRING,HKEY_LOCAL_MACHINE,.F.) = 0
>
>variable 'HKEY_LOCAL_MACHINE' is not found
>I am running win 98 with IE4
>I ran the dcom98 install and still had the variable not found
You're either missing REGISTRY.H, or haven't included it; REGISTRY.H contains the definition for HKEY_LOCAL_MACHINE, as well as the other common registry keys. You can use the following #DEFINES for the registry key values:
#define HKEY_CLASSES_ROOT -2147483648
#define HKEY_CURRENT_USER -2147483647
#define HKEY_LOCAL_MACHINE -2147483646
#define HKEY_USERS -2147483645