473,659 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading values from register

Hello,

When I try to retrieve values from the register with

Select Case
Dir(CStr(My.Com puter.Registry. GetValue("HKEY_ LOCAL_MACHINE\S oftware\Kassasy steem\Gegevensl ocatie",
"Gegevenspa d", "")) & "\" &
CStr(My.Compute r.Registry.GetV alue("HKEY_LOCA L_MACHINE\Softw are\Kassasystee m\Gegevenslocat ie", "Gegevensbestan d", "")))

and the entries I look for do not exist, I nevertheless get a value
"AClient.cf g", a file that is located on the root directory of my C drive.

How is this possible?
Both keys
HKEY_LOCAL_MACH INE\Software\Ka ssasysteem\Gege venslocatie\Geg evenspad
and
HKEY_LOCAL_MACH INE\Software\Ka ssasysteem\Gege venslocatie\Geg evensbestand
do NOT exist in the registry.

Can anyone enlighten me on that?

Many thanks and greetings from Brugge (Bruges - Belgium),

Michel

Aug 31 '07 #1
1 1363
Michel,

When the values don't exist in the registry you are returning a default
value of "".

Therefore, the argument to the Dir function is "" & "\" & "". In other
words, you are looking in the root directory.

Kerry Moorman
"Michel" wrote:
Hello,

When I try to retrieve values from the register with

Select Case
Dir(CStr(My.Com puter.Registry. GetValue("HKEY_ LOCAL_MACHINE\S oftware\Kassasy steem\Gegevensl ocatie",
"Gegevenspa d", "")) & "\" &
CStr(My.Compute r.Registry.GetV alue("HKEY_LOCA L_MACHINE\Softw are\Kassasystee m\Gegevenslocat ie", "Gegevensbestan d", "")))

and the entries I look for do not exist, I nevertheless get a value
"AClient.cf g", a file that is located on the root directory of my C drive.

How is this possible?
Both keys
HKEY_LOCAL_MACH INE\Software\Ka ssasysteem\Gege venslocatie\Geg evenspad
and
HKEY_LOCAL_MACH INE\Software\Ka ssasysteem\Gege venslocatie\Geg evensbestand
do NOT exist in the registry.

Can anyone enlighten me on that?

Many thanks and greetings from Brugge (Bruges - Belgium),

Michel
Aug 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
3489
by: shakeel-ur-rehman | last post by:
I am wrtiting programm in C++ to read/take complete image of the partiton. can any one let me know the internet resources and web sites having tutorials relating to this and tell any sequence of how to writing code in order to catch and complete directory structure of a partition with out using windows API i mean only assembly and C or C++. Shakeel
1
1695
by: Chris Online | last post by:
Hi all, At the moment I'm using a Altera MAX and MAX+plus2 graphical design software. I'm using the following parts inside the altera: Octal flipflop 74HC273 AddressDecoder 74HC154 Octal Buffer 74HC541 First I place an address at the input of the first FF. This address is inserted into the AdrDec. Then I put data on the input of a
1
682
by: bdt513 | last post by:
I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails). I can get one record's result by using the DLookup fuction, of course, but I want to get every record's value. To do this, I believe I need to build a recordset, but I do not know how. I've read about doing it using DAO in Access 97, but I am...
0
1464
by: The Other Bill | last post by:
Hi -- I'm trying to deploy a VB.NET application that references COM dlls. When I add the dlls to my deployment project the Register property of these files defaults to COMSelfReg. Does this mean I have to register the dlls myself somehow? Or can I change the value to COM so that the installer registers it for me? Not sure what the difference is between these two values and the help on this topic is not very helpful. Clueless, Bill
0
6669
by: rs | last post by:
Hi guys, I am trying to read from a USB keyboard using vb.net and HID classes. the USB keyboard is not my primary keyboard. I have a ps2 keyboard connected and is detected in device manager as my keyboard. the USB keyboard is detected as HID keyboard device. the program finds the keyboard if it is attached. and I am getting valid handles. however, everytime I use the readfile function I am getting "object reference not set to an instant...
2
8757
by: rs | last post by:
Hi guys, I am trying to read from a USB keyboard using vb.net and HID classes. the USB keyboard is not my primary keyboard. I have a ps2 keyboard connected and is detected in device manager as my keyboard. the USB keyboard is detected as HID keyboard device. the program finds the keyboard if it is attached. and I am getting valid handles. however, everytime I use the readfile function I am getting "object reference not set to an instant...
4
1460
by: =?Utf-8?B?R3JlZyBTdGV2ZW5z?= | last post by:
I have an ASP.NET page with a form that contains two user controls: <%@ Register TagPrefix="x" TagName="c1" Src="ctl1.ascx" %> <%@ Register TagPrefix="x" TagName="c2" Src="ctl2.ascx" %> <body> <form runat="Server"> <x:c1 id="con1" runat="Server"> <x:c2 id="con2" runat="Server"> <form> </body>
0
1162
by: Masher5050 | last post by:
Hello, I am having an issue getting values out of this XML document. Sample of XML <?xml version="1.0" encoding="UTF-8"?> <LmbLeads xmlns="http://www.lmb.com/hla/2006"> <LmbLead> <LeadType>2</LeadType>
1
2326
by: ravichobey | last post by:
Hi All, I am newbie to this forum. My Question is: I am using a 16 bit register in FPGA code.The address of that register is 0x77200000 and i want to read the third register of that 16 bit register. How it is possible?
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.