From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

compile nimhddk_windowsWDM

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

0 Kudos
Message 1 of 4
(6,762 Views)

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

 

 

 


 

0 Kudos
Message 2 of 4
(6,760 Views)

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.

0 Kudos
Message 3 of 4
(6,746 Views)

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

0 Kudos
Message 4 of 4
(6,739 Views)