"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 22.214.171.124624 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, 194👍, 0💬
Where to find tutorials on how to create Your Own Functions in PHP? A collection of tutorials to ans...
How To Control Horizontal Alignment in Table Cells? By default, text in all table cells are aligned ...
How To Support Multiple-Page Forms in PHP? If you have a long form with a lots of fields, you may wa...
How To Connect to MySQL from a PHP Script in PHP? If you want access the MySQL server, you must crea...
How To Quote Date and Time Values in SQL Statements in PHP? If you want to provide date and time val...