To use the .NET interface with C# and VB.NET/VB2005/VB200x:
diCrSysPKINet.dll library file into a convenient folder
(the setup program puts this file by default in C:\Program Files\CryptoSysPKI\DotNet).
diCrSysPKINet.dll.using CryptoSysPKI;
or (for VB.NET)
Imports CryptoSysPKI
to your code.
Alternatively, with C#, you can just include the source code module CryptoSysPKI.cs in your project
and there is no need to reference the class library DLL.
All methods in the CryptoSysPKI .NET Class Library are static methods. You do not need to instantiate or dispose of any objects.
For examples, see the test code TestPKIcsharp.cs and TestPKIvbnet.vb
provided in the distribution.
In older versions we suggested using direct upgrades of the VB6 code in VB.NET with all the pre-dimensioning and other unsafe practices. The .NET Class Library interface is cleaner, safer and more convenient. If you are writing VB.NET code from scratch, please use the .NET Class Library interface. If you need to upgrade old VB6 code, see Converting VB6 to VB.NET.