LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Suspend or resume a CVI thread

In the application note it suggest to use ResumeThread() and SuspendThread() to pause and resume thread execution of the thread function. Can someone tell me how to include these two functions in CVI. When I use Supsend or Resume function, the CVI compiler it is missing properly header file and when I include CVI\sdk\include the compiler complaints about redecaration. Does anyone know which CVI lib/dll contains the implementation? and how to get rid of the multiple declaration errors?

Nelson
0 Kudos
Message 1 of 2
(3,863 Views)
Nelson,

My understanding is there are a few macros defined by windows.h that are also defined in some of the CVI headers. Although NI defined the macro names first, Microsoft decided to use the same names at a later date and NI added tests for previous declarations in their headers.

The workaround is to make sure windows.h is the first header file included in your code.

Regards

Jamie
0 Kudos
Message 2 of 2
(3,863 Views)