"MyLibApp.vb" - Call VB Class from Library
How to call a function from a VB class provided in a library?
If you want to call a function from a VB class provided in a library, you can follow this tutorial:
1. Reference the shared function with the class name prefix:
2. See the following full source code example, MyLibApp.vb:
' MyLibApp.vb ' Copyright (c) FYIcenter.com Module MyLibApp Sub Main() MyLib.PrintHello() End Sub End Module
3. Compile the code with the "vbc /reference" command:
>vbc /reference:MyLib.dll MyLibApp.vb Microsoft (R) Visual Basic Compiler version 184.108.40.206624 Copyright (C) Microsoft Corporation. All rights reserved. >dir MyLibApp.* 09:55 AM 6,656 MyLibApp.exe 09:53 AM 134 MyLibApp.vb
4. Run the executable code:
C:\fyicenter>MyLibApp.exe Hello world! - From MyLib
2017-08-13, 388👍, 0💬
How To Create Table Borders? There are two sets of borders within a table: Outer Borders - Borders t...
What Is an HTML http-equiv "meta" Tag/Element? a http-equiv "meta" element is a special "meta" eleme...
What Is an HTML "code" Tag/Element? An "code" element is an inline element that you can use to speci...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...