Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

"As any" in VB.net

I using Data Acquisition (PCI-6023E) and then download driver of them, version NI-DAQ 6.9.3 that supported Window XP.
This interface card works good for Microsoft Visual Basic 6.0 but Microsoft Visual Basic .net not works with it because VB.net is not supported 'As Any' in 'Declare' statements of nidaq32.vb
Please, solve this problem.
Thank you very much.
0 Kudos
Message 1 of 2
(8,202 Views)
As Any was supported in Declare statements in VB6 to enable calling functions whose parameters supported more than one data type. In VB.NET, you can achieve this by overloading the Declare statement with the different types you want to use for a specified parameter. For more information see As Any Parameters in Declares and Declare statement does not support parameters of type As Any.

Alternatively, you can use the Measurement Studio DAQ ActiveX controls in VB.NET. For more information see Using Measurement Studio ActiveX Controls in Visual Studio .NET, Acquire N Scans in Visual Basic .NET with Measurement Studio 6.0 ActiveX Controls, and Simple DAQ Example in Visual C# .NET with the Measurement Studio 6.0 ActiveX Controls.

- Elton
Message 2 of 2
(8,202 Views)