I'm trying to develop the driver of a MCC DAQ device in C# (Please see the attached McThermalSensors.cs file). However, when the program makes the very first call of "ThermalTypeConfig = ThermalType.TC_TYPE_K;", an exception was thrown, with the following message:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Can you help to check what is wrong here? And is there any sample driver program using the libraray C:\Program Files (x86)\Measurement Computing\DAQ\cbw64.dll?
Meanwhile, I also tried with the attached sample program that comes with the driver installation, but I got the error in the attached figure. Please help to take a look at it.
Thanks!
McThermalSensors.cs
CInScan01.zip