Getting Started

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:

Basic Declaration

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"