Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to transform a string into a dword type in the regis
Message
De
12/02/2003 09:21:14
 
 
À
12/02/2003 08:07:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752231
Message ID:
00752262
Vues:
22
The standard VFP Registry .PRG and .VCX only support reading and writing Strings. I made some modifications to these to support binary and dword types, and made them available at our user group web site - http://mmfudg.lansing.com/files/reg_up.zip [just 27 KB]. I won't give the whole background here - you can read the embedded "registry_updatedoc.txt" file instead. There are a couple of sample .PRGs of the usage. Note: If you use the .VCX in any version but VFP 7.0 SP1, please recompile it first. Let me know if you have any questions, problems or suggestions for further enhancements.

Rick

>
here is the code i use to set the DisableTaskMgr value in the registry.
>this code with chr(1) as value doesn't creat a dword type.
>But when i put the value directly in the registry it works well.
>So why this code doen't give a dword type but a string type ?
>
>oReg.SetRegKey("DisableTaskMgr",chr(1),;
>"Software\Microsoft\Windows\CurrentVersion\Policies\System",;
>HKEY_CURRENT_USER,.t.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform