Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

can't get events in CSharp

I have an MFC OCX (ActiveX control) that uses the Frame API to talk to a device via CAN (pci-bus NICAN card). I get 'events' (unsolicited frames) just fine from this device from an MFC 'monolithic' application. There is a CSharp (VSNet2k3) variant that is able to use CAN to talk to these devices (uses SAME MFC OCX...), but it cannot receive these unsolicted frames. I'm pumping messages and Thread.Sleep(0) to beat the band, but they are NOT received by the OCX, so they are not signalled to my application.

Any ideas?
0 Kudos
Message 1 of 2
(3,186 Views)
Hi George,

this would be a question for the person you got that ActiveX control from. As of NI-CAN 2.2, National Instruments still hasn't added ActiceX controls or .NET support to the CAN driver.

-B2k
0 Kudos
Message 2 of 2
(3,186 Views)