473,805 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

writing to registyr with active x dll using getsetting and saveset

We have an application that communicates with a PLC in the field. All of the
values from the PLC are written to registry keys under
hkey_current_us er\software\vb and vba programming\app lication
name\subkey\val ue.

We were trying to access the registry key directly using asp. I found a
tool to access registry, but for some reason it can't read or write values to
hkey_current_us er. So, we wrote and active x dll that using gettsetting and
savesetting to read and write to the registry, and we just use the object in
ASP. Unfortunately, it writes to HKEY_USERS\.DEF AULT\Software\ and then
creates the vb and vba programming\app lication name\subkey\key . It reads and
writes to this area just fine, but well that is not where we want to read and
write to. We rewrote the dll to specify the HKEY_Current_Us er area, but it
still behaves the same way. Any help or direction on this would be
appreciated. Thanks in advance for the help.
Jul 22 '05 #1
1 1436
If the site is using anonymous access then the "current user" is the
"default" user. If you need to write to a specific user's profile you will
probably have to disable anonymous access and have that user log on when
they hit the web site. Or you will have to find the user you want to modify
under HKEY_USERS and modify their data directly (will need to make sure the
anonymous account has write access to the other users' data in the
registry).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Roundy" <Ro****@discuss ions.microsoft. com> wrote in message
news:2F******** *************** ***********@mic rosoft.com...
We have an application that communicates with a PLC in the field. All of the values from the PLC are written to registry keys under
hkey_current_us er\software\vb and vba programming\app lication
name\subkey\val ue.

We were trying to access the registry key directly using asp. I found a
tool to access registry, but for some reason it can't read or write values to hkey_current_us er. So, we wrote and active x dll that using gettsetting and savesetting to read and write to the registry, and we just use the object in ASP. Unfortunately, it writes to HKEY_USERS\.DEF AULT\Software\ and then
creates the vb and vba programming\app lication name\subkey\key . It reads and writes to this area just fine, but well that is not where we want to read and write to. We rewrote the dll to specify the HKEY_Current_Us er area, but it still behaves the same way. Any help or direction on this would be
appreciated. Thanks in advance for the help.

Jul 22 '05 #2

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

Similar topics

5
3301
by: RWC | last post by:
Hi! I'm having a problem in A2K2. This should be simple, but I can't really figure it out. First problem, I'm trying to set the property of a table, via Vb to hidden, and I aslo would like to update the Description as well. For some reason I can't seem to find any reference to doing this in the online help. Also, second part; I would like to find out more about reading, adding and editing a registry entry via Access / VB. Although...
3
1609
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
2
3410
by: Mike | last post by:
VB .NET version 2003 What is the equivalent of GetSetting when trying to read a .INI file. I'm trying to read a .INI file and can't find anything that will help.
0
1687
by: Brad Dennis | last post by:
Using Access 2003, I have a form that reads registry settings using the GetSetting function. It works fine as long as I haven't signed the VBA code. But after using my Thawte Code Signing Certificate, my database usually fails when opening the signed file. I get a message complaining about "BeginBatchEdit" and the registry does not get read.
1
1162
by: Christian Perthen | last post by:
Hi, I have a sub in the codebehind page of a user control file that writes html. How do I get the sub triggered and output the html in the content page? See my approach below. Partial Class contentAffiliate Inherits System.Web.UI.UserControl
2
13080
by: Mike in Santa Rosa | last post by:
As an old vb6 programmer coming to C# I was wanting to update my technique for storing app settings like for form controls state(radioButton, checkBox selection) and user configurable settings. In vb6 I did this by using the SaveSetting/GetSetting pairs to store & retrieve the key value pairs into/from the registry. What's a better or another way to do this with C#? Thanks Mike
3
3279
by: Robert Iver | last post by:
Hello, I am developing an application in C# using VS .NET 2005 that will be accessing and updating Active Directory via LDAP. So, far I have written the main portions, but now I am stuck on the code to CHANGE and ADD/DELETE entries. I'm pretty sure my problem is security related, but I can't quite narrow it down. I bind to the root of the AD domain using an account that is a Domain Admin on the AD server itself, HOWEVER....
89
3878
by: Skybuck Flying | last post by:
Hello, This morning I had an idea how to write Scalable Software in general. Unfortunately with Delphi 2007 it can't be done because it does not support operating overloading for classes, or record inheritance (records do have operator overloading) The idea is to write a generic integer class with derived integer classess for 8 bit, 16 bit, 32 bit, 64 bit and 64 bit emulated.
16
1471
by: AAaron123 | last post by:
I have a timer. At each tick, say 0.1 second, I write a file. If it takes more than 0.1 second to write the file the app will not work correctly. How can I tell in the tick event if the previous file finished writing so I can skip writing at that time? I write using the Bitmap.Save method.
0
10356
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...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10103
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
9179
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
7644
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
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4316
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
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
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.