4Developers Logo   
Home
     
Products
ActiveX/COM Tools
Other Products
    
Resources
Links
Join our Newsletter
   
News
About 4D
Contact 4D
SimpleRegistry Code Download Now (241kb)
Version: 3.0
OS: Windows 95,98,NT,2000/Me,XP
  
Development Tools: Visual Basic, Delphi, ASP and any other tool that support ActiveX/COM.
  
Overview Reviews & Awards
Download Now (241kb, 30-day trial, Version 3.0)  
Order Now! ($49.95 for a royalty free license)  
Get the registered version, within minutes with our automated order system. Registration Benefits
New in Version 3.0   
Order SimpleRegistry + Source Code Examples
  
Overview
SimpleRegistryTM is a COM Control (COM DLL) that allows you to programmatically access the Windows Registry in much more intuitive way than the Win32 Registry API.

Accessing the Registry from your code has never been easier - No more messing with handles, allocated buffers or having to import numerous Win32 constants into your application. 

SimpleRegistry exposes the building blocks of the Registry (Keys & Values) in a object oriented fashion. Keys and values are treated as objects and have their own properties and methods. 

Programming the Registry from Visual Basic, ASP, Delphi or any other environment that support ActiveX/COM is now as simple as VB or Delphi gets.

SimpleRegistry was written in C++ (ATL), so its size is very small (100kb) and it has no 3rd party dependencies.

  
What's New in version 3.0
Previous versions of the SimpleRegistry Control were written in Visual Basic. That caused SimpleRegistry to depend on the Visual Basic run-time which is more than 1mb in size. As a result, the control could only be used within Visual Basic applications. 

In addition, the control was implemented as an ActiveX control which requires the application to have at least one form (on which to place the control). If an application contains no forms (a COM EXE server for example), than SimpleRegistry could not be used.

SimpleRegistry 3.0 was completely rewritten in C++ (ATL) to solve the limitations of previous versions. The control's size is only 100kb and it has no 3rd party dependencies. That means it will work in any development environment that supports ActiveX/COM (VB, Delphi, ASP etc.)

In addition the new version was implemented as a COM DLL (rather than an OCX) so you can use it with or without forms.

SimpleRegistry 3.0 has almost an identical API as version 2.0. However, it is not backwards compatible with previous versions due to the reasons detailed above.

New properties in version 3.0

  • AccessRights - Allows you to specify the default access rights used when performing a Registry operation (For example opening, creating or deleting a key). There are three access modes available: Read Only, Write Only and Full access (Read and Write).
  • SubKeyExists - Allows you to determine if a sub-key exists.
   
Reviews & Awards
week.gif (507 bytes)  Control of the week on CNET's ActiveX.COM

 

Examples

The code samples below, demonstrate how simple and intuitive Registry access can be if you use the SimpleRegistry Control.

Adding a key to the Registry

Dim Reg As New Registry
Dim Key As RegistryKey
Set Key = Reg.HKEY_CLASSES_ROOT.AddKey("MyNewKey")

Deleting a key from the Registry

Dim Reg As New Registry
Dim Key As RegistryKey

Set Key = Reg.HKEY_CLASSES_ROOT.AddKey("MyNewKey")
Reg.HKEY_CLASSES_ROOT.DeleteKey "MyNewKey"

Adding a Value to a Registry key

Dim Reg As New Registry
Dim key As RegistryKey
Set key = Reg.HKEY_CLASSES_ROOT.AddKey("MyNewKey")
key.AddValue("MyValue").StringValue = "MyStringData"

Deleting a Value from a Registry key

Dim Reg As New Registry
Dim key As RegistryKey

Set key = Reg.HKEY_CLASSES_ROOT.AddKey("MyNewKey")
key.AddValue("MyValue").StringValue = "MyData"
key.DeleteValue "MyValue"

Accessing the Registry on a remote computer

Dim Reg As New Registry
Reg.RemoteComputer = “MyOtherMachine”

Dim key As RegistryKey
Set key = Reg.HKEY_CLASSES_ROOT
MsgBox key.NoOfKeys


These are only a few basic examples of what you can do with the SimpleRegistry Control. In addition to that you can iterate keys and values, access binary and multi string data and much more. 
  
What do you receive when you order?
1. Get the registered version, within minutes with our new, automated, order system.

2. Get rid of the nag screen that is displayed in the trial version.

3. SimpleRegistry Control royalty free license.

  
Questions: sales@4dev.com
Copyright © 1997 - 2001 4Developers LLC. All rights reserved.