B
Bradley
I'm trying to access a driver by producing a instance to
it, so I can talk to a USB divice. It was originally
written in Visual Basic 5.0. And I'm using Visual C#_2002,
and have add the reference to the driver. Here is how it
looks in Visual Basic 5.0 and would like to see what it
would look like in Visual C#. This is just part of the
problem, but one thing at a time.
Any thoughts would be appreciate.
'Declare an object variable to hold the device collection.
'We use WithEvents so that we can utilize the OnChange event.
Private WithEvents Connected As BDAQ.BBDaqEnum
Attribute Connected.VB_VarHelpID = -1
'Declare an object variable to hold a device.
'We use WithEvents so that we can utilize the
OnDataAvailable event
'during timed sampling.
Private WithEvents Device1 As BDAQ.BBDaqDevice
Attribute Device1.VB_VarHelpID = -1
it, so I can talk to a USB divice. It was originally
written in Visual Basic 5.0. And I'm using Visual C#_2002,
and have add the reference to the driver. Here is how it
looks in Visual Basic 5.0 and would like to see what it
would look like in Visual C#. This is just part of the
problem, but one thing at a time.
Any thoughts would be appreciate.
'Declare an object variable to hold the device collection.
'We use WithEvents so that we can utilize the OnChange event.
Private WithEvents Connected As BDAQ.BBDaqEnum
Attribute Connected.VB_VarHelpID = -1
'Declare an object variable to hold a device.
'We use WithEvents so that we can utilize the
OnDataAvailable event
'during timed sampling.
Private WithEvents Device1 As BDAQ.BBDaqDevice
Attribute Device1.VB_VarHelpID = -1