The Visual Basic 6 class is distributed with the ETH32 API as a set of three source files that you must add to your application. The following steps are necessary:
Copy the files from the ETH32 distribution into your project directory (same directory as your source files). By default, the installer places these files in the C:\Program Files\winford\eth32\api\windows\vb6 directory. These files are also on the CD in the api\windows\vb6 directory. It includes five files:
eth32.bas Eth32.cls eth32_form.frm Eth32Config.cls Eth32ConfigPlugin.cls
Add the files to your project. This is done one file at a time using the "Add File..." option of the "Project" menu. To include all functionality, be sure to add all five files. If your application does not need the ability to detect or re-configure the network settings of ETH32 devices on the local network, you may omit the Eth32Config.cls and Eth32ConfigPlugin.cls files.
The main class that is provided is named Eth32. Because it provides an event that is fired when an event on the device fires, you must declare your object variable using the WithEvents keyword. Declaring an object WithEvents is not allowed in modules (.bas files) or in procedure-level variables, which means you should declare the object at the top of your form source code before any procedures, as follows (substituting any valid variable name for dev):
Dim WithEvents dev As Eth32
Later in your code, at the point you wish to instantiate the object and connect to the device, your code should be similar to the following (substituting the variable name you used in the Dim statement for dev and the actual address or DNS name of your device for 192.168.1.100)
Set dev = New Eth32 dev.Connect "192.168.1.100"