Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fatal Error Exception Code = C0000005
Message
De
13/01/1999 17:04:14
 
 
À
13/01/1999 12:07:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00174938
Message ID:
00175703
Vues:
29
>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 	&& 1*(bitset(0,31)+0)
#define HKEY_CURRENT_USER    -2147483647  	&& 1*(bitset(0,31)+1)
#define HKEY_LOCAL_MACHINE   -2147483646  	&& 1*(bitset(0,31)+2)
#define HKEY_USERS           -2147483645  	&& 1*(bitset(0,31)+3)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform