Re: User-defined type not defined ? by Mike
Mike
Tue Jun 07 05:11:17 CDT 2005
> Please Help, I have a demo project in VB6 that is supposed to communicate
> with the USB interface (Relay control unit connected to usb port)
>
> When running code, get the following error.
>
> User-Defined Type not Defined, when debug is sellected, points to the
> following code.
>
> Set Datalab = New ControlWeb.DRVAXDLUSB
>
> Can somebody tell me how I go about defining this please.
You'll need to add a reference to whichever library exports the ControlWeb.DRVAXDLUSB object.
I've just done a quick test here and you may be able to find it this way; run the registry editor (Start -> Run ->
RegEdit), navigate to the HKEY_CLASSES_ROOT hive and have a look for a ControlWeb.DRVAXDLUSB entry. Once you've found
it you'll find there's a Clsid sub-key with a GUID default value. Find this key under HKEY_CLASSES_ROOT\CLSID\ and one
of the sub-keys should have the OCX path.
Bit of a kludge but it appears to work for a few OCX's I've got here.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: Http://EDais.mvps.org/