USBmicro

Your source for USB electrical device interface products.

  • Home
  • Services
    • Design
    • Contact USBmicro
  • Where to buy…
You are here: Home / Documentation / DLL Commands / About

About

About the DLL


Description:

This is a USBm.dll function that returns information about the USBm dynamic link library.

Command Syntax:

true⁄false USBm_About( string )

The USBm_About function syntax has these parts:

Part Description
string Any valid string expression.

Remarks:

In VB the string passed as an argument must be large enough to hold all the characters that the function places in the string. The best way to achieve this is to set the string to a large size with the String function as in this code:

strStrng = String(250, ” “)

Note: USBm_About always returns TRUE.

Note: USBm_About does not affect the internal error string.

VB Declaration (USBmAPI.bas)

Public Declare Function USBm_About _
    Lib “USBm.dll” _
        (ByVal aboutstring As String) _
    As Integer

VB Example

Dim strng As String * 255

    USBm_About strng
    frmStatus.lstDevices.AddItem “About the USBm DLL: ” & strng

This code fragment shows that strng is loaded with the “about” text of the DLL. Assuming that the form called “Main” exists with a text box called “Info”, the “about” information will be made visible to the user.

C Prototype

int USBm_About( char *about );

C Example

RobotBASIC

About, Copyright, Version Date, and Version Number are all handled by the RobotBASIC function usbm_DllSpecs().

usbm_DllSpecs()

Returns a string that contains information about the DLL. There are four sections separated by the | character. You can use the Extract() function to extract each section separately if desired. The sections are:

About

Copyright

Version Date

Version Number

Documentation

Open all | Close all