ComCrack
04-10-2003, 04:19 PM
Is it possible to edit the registry with a vbcode?
thank
ComCrack
thank
ComCrack
REgistryComCrack 04-10-2003, 04:19 PM Is it possible to edit the registry with a vbcode? thank ComCrack Squirm 04-10-2003, 04:21 PM Yes, you can use the native functions SaveSetting DeleteSetting GetSetting, but they are limited to subkeys within the VB and VBA Program Settings key only. For full registry access use the Win32 Reg* functions RegCreateKey RegQueryValue RegSetValueEx RegDeleteKey RegCloseKey etc. ComCrack 04-10-2003, 04:42 PM I tried this : Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long but it show : >Compile error: >Constants, fixed-lenght strings, arrays, user-defined types end Declare >statements not allowed as a public members of object modules I don't know what to do. Thank ComCrack Squirm 04-10-2003, 04:49 PM You need to prefix the declare with Private in forms, classes, and usercontrols. ComCrack 04-10-2003, 05:03 PM I don't understand. Can you show me an example of code please? Thank you ComCrack ComCrack 04-10-2003, 05:17 PM It's allright I found how to writ in the registry Thank you ComCrack |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum