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.
Question
Zhihua Wang
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
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now