Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read Registry Key Without Registry vcx class
Message
 
 
À
12/03/2007 13:09:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01202744
Message ID:
01202793
Vues:
12
>Except that in Stuart's version, this is acceptable:
>
>#define HKLM 0x80000002
>
>oStdRegProv = getobject("winmgmts://./root/default:StdRegProv")
>cValue = space(255)
>
>TRY
>	if oStdRegProv.GetStringValue(HKLM, "SOFTWARE\Classes\Tracy.Project\shell\Open\Command\", "", @cValue) = 0
>	    ? "Value is " + cValue
>	endif
>CATCH
>	?[The application is not installed]
>       *--Handle application not installed
>
>ENDTRY
>
Yes, thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform