CryptoSys PKI Pro Manual

Visual Basic or Visual Basic: VB6 vs VB.NET

When we refer to "Visual Basic" in this document we probably mean the old "classic" Visual Basic, VB6. This language, although very popular but now dropped by MS, is almost completely compatible with Visual Basic for Applications (VBA) that still comes with Microsoft Office products like MS Access and Excel.

When we refer to "VB.NET" we mean "Visual Basic .NET" or "Visual Basic 2010" or later. This is the one with the 50+ MB runtime instead of the 5 MB one for the old VB6. Everything we do here in VB.NET should be compatible in principle with every version since it was introduced in 2002 - we don't use any fancy features. However, the .NET interface is compiled for NET 4.0 and is upwardly compatible.

It would have been less confusing if MS had chosen a completely different name for the VB.NET version instead of "Visual Basic" (like, er, "Java"). The languages look similar (too similar!), but programs need to be approached in a completely different manner, at least when using our stuff.

In CryptoSys PKI Pro there is a completely different set of VB.NET (VB2010+) methods that can be called using the VB.NET wrapper diCrSysPKINet.dll. See the sections marked .NET Equivalent under each function and the .NET Help File.

In general, the function FOO_DoThis in VB6 is replaced by a method Foo.DoThis in VB.NET. The arguments and type of return value will be probably be different - there will be fewer arguments and the result is usually just returned directly without any pre-dimensioning requirements. Similarly, the same function FOO_DoThis in C/C++ is replaced by a method Foo.DoThis in C# which is identical to the VB.NET method. For a quick guide, see Converting VB6 to VB.NET.

[Contents] [Index]

[PREV: Detecting Win32 or X64 platform...]   [Contents]   [Index]   
   [NEXT: General Programming Issues...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.