viksoe.dk

EasyReg


This article was submitted .


Application Features

  • Easy interface to System Registry.
  • Light-weight COM object.

Description

Light-weight and fast COM component for Visual Basic 6 and ASP developers.
Gives you access to the Windows System Registry API.

You get access to the Registry through 4 objects: RegNode, RegValue and the 2 collections RegNodes and RegValues.
Only two data types are supported. Integers (32 bit) and strings. The expandable data string (REG_EXPAND_SZ) can be read, but if you write it back to the Registry it will be written as a regular string! Binary data is not supported.

The following sample shows how to use the objects:

Dim node As New RegNode
Dim value As RegValue

    Call node.Set(HKEY_CURRENT_USER, "SOFTWARE\Baan\Configuration")
    Set value = node.Values("MediaPath")
    Debug.Print value.Name & ": " & value.Value
    Set value = Nothing
    Set node = Nothing

The component comes with full documentation.

The Source Code

It's almost entirely generated with the ATL Wizard and the build-in class-wizard.
HTML Help documentation generated with my DocWizard wizard for MSVC++ 6.0.

Source Code Dependencies

Microsoft Visual C++ 6.0
Microsoft ATL Library
Microsoft HTML Help Workshop

Installation Guide

  • Copy the DLL to a directory of your choice and register it using the REGSVR32 utility.

See Also

EasyINI Component
EasyNLS Component

Download Files

DownloadBinary Files and Documentation (45 Kb)
Source Code (143 Kb)

To the top