473,667 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WinXP 64-bit, VB2005 & a 32-bit App, Reading the Registry...

Hi all,

My little application is in VB2005 Pro.
I'm doing my development on WinXP 64-bit.

I was having a problem reading a registry key under HKLM and thought it was
a permission issue.

Now, I believe that it's the fact my App is using the .Net 2.0 32-bit
assemblies and consequently is not able to read the registry under WinXP
64-bit.

I'm assuming the above based on the following...

1. My App doesn't read the key.
2. When I run '\Windows\reged it.exe' or
'\Windows\syste m32\regedt32.ex e' I cannot see the key let alone the value.

3. When I run '\Windows\syswo w64\regedit.exe ' or 'regedt32.exe' I can
see the key and the value.
=============== =============== =============== ========
So, My question is...

A. How do I identify at runtime whether my App is running under 32-bit
or 64-bit?

B. Do I need to include the 'appropriate' 64-bit version assemblies as
references in my App?

My desired result from this post is to have my App be able to 'read' a value
out of a HKLM key irrespective of whether the App is running on 32-bit
Windows or 64-bit Windows.

Thanking you in advance from any help you can provide...

Cheers, Simon.
May 11 '06 #1
0 1290

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

Similar topics

2
2215
by: Ivan Van Laningham | last post by:
Hi All-- I've been using PySol-4.40 for years, because that was the last Windows installer version I could find. My wife's been using it for almost the same length of time. That version's worked just fine on W98, W98SE, W2K (server included), and WinXP SP1. I upgraded to SP2 and pysol fails silently. Running 'python pysol.pyw' gives me this error: Traceback (most recent call last):
3
2099
by: Matthew P. Seltzer | last post by:
All- This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given what I have copied into my WinSXS folder, would I be able to use a combination of assembly manifests and isolated Win32 assemblies to do this? According to MSDN, comctl32.dll, Version 6, which is bundled with WinXP, is not redistributable. My...
4
1326
by: Anonymous | last post by:
I have written a series of applications in different languages to compare them. In my first one, I am testing console output. On my first test OS (Mandrake Linux), C++ came in second, just behind Perl. However, on Windows XP, C++ is falling behind badly. I am compiling using the Microsoft Visual C++ Toolkit 2003 Compiler, and providing the /O2 option to compile for speed. Still, the others are easily doing the task three times as...
3
12141
by: n3mtkj3mzsir0cy | last post by:
I have created web pages that do client-side form validation using the onclick directive. E.g., <form action=other_page.cgi method=post> Enter your age: <input name=age> <input type="submit" value="" onclick="return validate_form()"> </form> where validate_form() returns true or false depending on whether the user entered a valid age.
2
2311
by: Don Leverton | last post by:
Hi Folks, I'm experiencing a problem that seems to be unique to running Access97 on Windows XP, and seems to be worse on WinXP SP2. It appears when I'm trying to import a text file. I'm encountering a "You do not have access to the folder 'C:\Program Files\ProComm Plus\Download\*.*' See your administrator for access to this folder." message.
3
5866
by: Frank Jiao | last post by:
I can get my local IPv6 address in Win2003 use the source code as below: string localName = Dns.GetHostName(); string address = ""; string scopeId = ""; IPHostEntry hostEntry = Dns.Resolve( localName ); foreach (IPAddress curAdd in hostEntry.AddressList) { if(curAdd.AddressFamily.ToString() ==
1
1222
by: Kevin | last post by:
My app was built with VC++ and run on WinXP, I found the controls style of my app is different from controls in those apps coming with WinXP, like button, check box, listctrl, etc, those controls coming with WinXP will change color/seem highlight when mouse was on while those in my app didn't - can anyone tell me why? and how can I built controls with WinXP style? Thanks.
4
6194
by: | last post by:
I have earlier used an HttpModule that did URL rewrites on the BeginRequest event. Now I am trying to use the same module in a different application on a new and upgraded machine (winxp sp2). The Module is registered via Web.config. The registration is OK. When asking for an existing .aspx page, the eventhandler is called as it should. HOWEVER - if the request url is for a non-existant file, I get a 404 - file
1
2954
by: jerry.levan | last post by:
Hi, I have a python app that runs fine on MacOS X and Fedora Core 5. This evening I dragged the folder over to my windows partition and tried to run the rascal. The program starts up fine but at the first call to create a Table object I get
1
1281
by: Chris Mullins | last post by:
I'm trying to install the Service Pack 1 to Visual Studio, and I keep getting: "The installation source for this product is not available.Verify that the source exists and that you can accesss it." Anyone had an luck installing on XP 64? -- Chris Mullins
0
8457
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
8365
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
8883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
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
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
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
6203
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
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
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

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.