LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling toolbox.c from CVI 8.1 using VS C++

Hello,

I have a MS VC++ project using toolbox.c from LabWindows 8.0. The project compile and link fine. Switching to LabWindows 8.1, the project does not compile. I get the following error:

c:\Program Files\National Instruments\CVI81\toolslib\toolbox\toolbox.c(1064) : error C2065: 'COINIT_APARTMENTTHREADED' : undeclared identifier

Switching back to 8.0 files, the project then compile fine...

I need to switch to 8.1 for the new TDM files capabilities...

Regards,
Yannick Willener


0 Kudos
Message 1 of 3
(3,342 Views)
You probably need to add _NI_mswin32_ to the C compiler preprocessor definitions in your VC project settings.
--
Martin
Certified CVI Developer
Message 2 of 3
(3,328 Views)
It works...

Thanks,
Yannick Willener
0 Kudos
Message 3 of 3
(3,318 Views)