User`s guide

19
5
Universal Library for .NET Description & Use
Programming the Universal Library API is now available through the various languages supported by the
Microsoft .NET framework. All .NET applications access the 32-bit Windows Universal Library
(CBW32.DLL) through the MccDaq .NET assembly (MCCDAQ.DLL). The MccDaq assembly provides an
interface that exposes each Universal Library function that is callable from the .NET language.
The Universal Library for .NET is designed to provide the same "look and feel" as the Universal Library for
32-bit Windows. This design makes it easier to port over existing data acquisition programs, and minimizes
the learning curve for programmers familiar with the CBW32.DLL interface.
In the Universal Library for .NET, each function is exposed as a class method with virtually the same
parameter set as their UL counterparts.
Configuring a UL for .NET project
In a .NET application, there are no header files to include in your project. You define methods and constants
by adding the MccDaq assembly, or Namespace, as a reference to your project. You access UL for .NET
methods through a class that has the Universal Library as a member.
To add the MccDaq Namespace as a reference in a Visual Studio .NET project:
1. Start a new Visual Basic or C# project in Visual Studio .NET.
2. From the Visual Studio .NET Solution Explorer window, right-click on References and select Add
Reference.
The Add Reference window appears.
3. From the .NET tab, select the MccDaq option from the displayed list of .NET assemblies and click on the
Select button.
MccDaq displays in the Selected Components area on the window.
4. Click on the OK button.