Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 21st, 2004, 12:04 PM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use of Active lock 1.6 and Generate Key

Hello! I have an application that works fine after registering using
Active lock and Generate key. It's installed in windows 2000 machines
and it works fine with administrator privileges. The same isn't true
when not using administrator privileges. The message is as following:

Run time error '26001'
failed to set registry value key_'-2147483646'
section:'Software\intel\c....', key:'6....'to value:"

Any suggestions?


Elisa Resina
__________________
Elisa Resina
Reply With Quote
  #2 (permalink)  
Old January 22nd, 2004, 04:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are sections of the windows registry that only administrative users (or PowerUsers) can modify, your application is presumably trying to change a value in one of these sections.

Change your app to use the HKEY_CURRENT_USER registry key instead of HKEY_LOCAL_MACHINE. It will mean that every user will have different settings (and may need to each install the program), however it will correct your problem.

The Windows Registry is an incredibly complicated area, so if you are going to do any serious development that uses the registry then may I recommend you invest in a good book on the subject?

Regards
Owain Williams
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2004, 09:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sparks, NV, USA.
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

Owain,

I would say I have a reasonable knowledge of the Windows registry, but I am weak in the changes from NT to 2k & XP. Most of the knowledge I have comes from experience, not a formal resouce that explains it. Do you have a book that you recommend (something from a developer's perspective, and not how to change the look & feel of windows)?



John R Lick
JohnRLick@hotmail.com
Reply With Quote
  #4 (permalink)  
Old January 22nd, 2004, 09:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am afraid I also have gained my knowledge by tinkering and several on-line resources. I would not say that I am an expert in the Windows registry, actually far from it, however I know the basics from a coding point of view.

The book Managing the Windows 2000 Registry by Paul Robichaux seems to have a good review on Amazon.com, sorry I can not offer anything better than that.

Regards
Owain Williams
Reply With Quote
  #5 (permalink)  
Old January 22nd, 2004, 12:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Elisa,
usually the installation process must be done as administrator, because as others have already pointed out the registration must have full access of the registry. At run time, the registry must be accessed only for read only. Interesting enough, the error code you experienced is the generic 'out of memory' (but that is only the reported error, the real meaning can be completely different).
Do you have the problem at registration or at run time? Are you using third party components?
Marco
Reply With Quote
  #6 (permalink)  
Old April 5th, 2004, 06:43 AM
Registered User
 
Join Date: Apr 2004
Location: Maastricht, , Netherlands.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This error could occure when you are running a windows version from windows 2000 and later. To solve this error you should have administrator rights on your network! Follow the step below:
1) Login as administrator
2) Start the program: Regedt32.exe
3) Goto HKey_Local_Machine
4) Open the Software folder and click once on the folder Nelco.
5) Click on the menu option Security and Permisions
6) Add the Full control to all users.
7) Login as normal user and Register again.

Best Regards,
Gradus Broekhuis
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access application exit button generate lock ayazhoda Access VBA 1 June 17th, 2008 10:28 AM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 06:26 AM
TAB KEY working together KEY PRESS event thomaz C# 4 August 20th, 2006 02:47 PM
How to Auto Generate ID (Primary Key) SQL Database havering SQL Server ASP 1 December 9th, 2004 04:33 AM
How to Auto Generate ID (Primary Key) SQL database havering SQL Server 2000 9 December 1st, 2004 09:38 AM



All times are GMT -4. The time now is 04:31 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.