Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

using NI-CAN with visual basic .net

Hi,
 
I'm using NI CAN 2.3.2 with visual basic . NET.
As there is no driver for VB.NET I use the C functions.
I need help because I didn't succeed to use the function ncReadMult
 
I declare this function like yhat :
Public Declare Function ncReadMult Lib "Nican" (ByVal ObjHandle As Integer, ByVal SizeofData As Integer, ByRef data() As NCTYPE_CAN_STRUCT, ByRef ActualDataSize As Integer) As Integer
 
of course I defined the type NCTYPE_CAN_STRUCT but the program stop without error message when this function is called.
 
Does somebody already use NI-CAN driver with VB .NET?
 
thank you for your help
 
JP
 
0 Kudos
Message 1 of 2
(3,715 Views)

Hi JP_V,

Because there is no VB.NET Support right now for NI CAN, it is very unlikely, that someone can help you with this.

I would suggest to try another more C or VB related Forum.

Dirk W

0 Kudos
Message 2 of 2
(3,652 Views)