![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have written these lines:
Sub Globals 'Declare the global variables here. Dim number, name, files(0) As string, binary(0) As byte End Sub Sub App_Start reg.New1 reg.RootKey(reg.rtLocalMachine) number = reg.GetValue("Software\OEM", "SysLang") 'Number Of Items is of type REG_DWORD name = reg.GetValue("Software\Comm", "AutoRun") 'User Name is of type REG_SZ files() = reg.GetValue("Software\Drivers\BuiltIn", "IClass") 'Recent file is of type REG_MULTI_SZ (multi - string) binary() = reg.GetValue("Software\AudioCompressionManager\Dri verCache\msacm.msg711","aFormatTagCache") 'BinaryValue is of type REG_BINARY Msgbox(number, "DWORD") Msgbox(name, "STRING") Msgbox(files(), "MULTISTRING") Msgbox(binary(), "BINARY") End Sub It comes given back the error to me of “key not found” on the reading of the DWORD; if I try to exclude the line, same thing for the STRING. The stranger thing is that I have copied equal par the example of the Handbook; the only variation has been carried out on the path of the variable ones of the registry to read. I have used one similar sintax in order to read keys on HKCU (rather than HKLM) without problems of risen… it is a bug or mistake something? Thanks to anyone want to answer to me |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Game and keys | pmu5757 | Questions & Help Needed | 13 | 06-01-2008 04:56 PM |
| Trapping Other Keys | Louis | Questions & Help Needed | 3 | 05-10-2008 08:20 AM |
| Using hw keys in MS Smartphone | TomasNM | Questions & Help Needed | 4 | 02-25-2008 04:30 PM |
| reading and editing registry | Dr. Feelgood | Questions & Help Needed | 3 | 02-16-2008 08:18 AM |
| Reading com ports information from the registry | Erel | Code Samples & Tips | 4 | 11-23-2007 02:09 PM |