Tools, FAQ, Tutorials:
"MyLib.vb" - VB Class and Library
How to create a VB class and build it into a library?
✍: FYIcenter.com
If you want to create a VB class and build it into a library, you can follow this tutorial:
1. Create the class source code file, MyLib.vb, with a text editor:
' MyLib.vb ' Copyright (c) FYIcenter.com Public Class MyLib Public Shared Sub PrintHello() Console.WriteLine("Hello World! - From MyLib.") End Sub End Class
2. Compile and build the static library with the "vbc /target:library" command:
>vbc /target:library MyLib.vb Microsoft (R) Visual Basic Compiler version 2.2.0.61624 Copyright (C) Microsoft Corporation. All rights reserved. >dir MyLib.* 09:47 AM 6,144 MyLib.dll 09:42 AM 182 MyLib.vb
3. Distribute the library file, MyLib.dll, to others to use.
⇒ "MyLibApp.vb" - Call VB Class from Library
⇐ VB Command Line Compiler in Visual Studio 2017
2017-08-13, 2180🔥, 0💬
Popular Posts:
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...
How to register and get an application ID from Azure AD? The first step to use Azure AD is to regist...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...