How to Create a Dynamic Link Library

104 11
    • 1). Open Microsoft Visual Basic Express, select the "File" menu and click "New Project." Select "Visual Basic" under "Installed Templates," then double-click "Class Library" shown in the middle of the "New Project" Window.

    • 2). Press "Ctrl" and "A," then press "Delete" to remove any existing code.

    • 3). Copy and paste the following to your "Class1.vb" module:

      Public Class Class1

      Public Function returnData() As String

      returnData = "This string was returned from a .dll"

      End Function

      End Class

    • 4). Click the "Build" menu, then select "BuildClassLibrary1" to create the new dynamic link library. A new DLL called "ClassLibrary1.dll" has been created in your project folder.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.