04-17-2012 08:26 AM
I am trying to compile the nimhddk_windowsWDM package for example digex1.cpp which will be used with NI 6509.
I am getting the compiler error
Error 1 error C2523: 'tDeviceListItem::~tDevicSetupDiGetClassDevseListItem' : destructor tag mismatch c:\magellan\6509\6509\6509\tdevicelist.cpp 33 1 6509
for the line below:
_hardwareDeviceInfo =
(&_guid,
NULL,
// Define no enumerator (global)
NULL,
// Define no
(DIGCF_PRESENT | DIGCF_DEVICEINTERFACE));
I am compiling on Windows XP and Microsoft Visual Studio 10
Any help would be appreciated
thanks
Rodney
04-17-2012 10:41 AM
I incorrectly posted the wrong error for the statement below
_hardwareDeviceInfo =
(&_guid,
NULL,
// Define no enumerator (global)
NULL,
// Define no
(DIGCF_PRESENT | DIGCF_DEVICEINTERFACE));
The acctual error for the statement above is
Error 2 error C2440: '=' : cannot convert from 'int' to 'HDEVINFO' c:\magellan\6509\6509\6509\tdevicelist.cpp 54 1 6509
04-20-2012 05:16 PM
Hello,
When I build the nirlpk.sys I just use the Windows Driver Kit (I used 7.1.0). After the install, the commandline build environments can be found in the start menu...select one and change directories to WindowsWDM\nirlpk. At that point, typing build builds the .sys file for you.
Have you tried using the WDK to build instead of Visual Studio 10?
Which WDK build environment are you using?
Thanks,
Steven T.
04-25-2012 10:47 AM
Hello Steven T
Thank you for your help. Originally I was going to create my own drivers but I have since decided to use the API for DAQmx. Therefore, I am no longer trying to compile nimhddk.
Thanks