LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 5.01 and windows.h trouble.

I am using CVI 5.01 under Windows NT. Now I want to use Threads and need
to include windows.h.
The trouble is that the CVI compiler cannot find all the include-files in
windows.h. It seems that most
or all the include-files in the section # ifndef WIN32_LEAN_AND_MEAN
are missing. Is this an error in my installation of CVI? The rest of my
installation of both LabView
and LabWindows CVI seems to be OK. Will it help to reinstall CVI?. Are
there any easier ways to
solve the problem?

Per Hveem
0 Kudos
Message 1 of 2
(3,079 Views)
You need to define the WIN32_LEAN_AND_MEAN compiler define for it to work.
Go to Project Options->Compiler Defines and put /DWIN32_LEAN_AND_MEAN.

Best Regards,

Chris Matthews
Measurement Studio Support Manager

Proje"Per Hveem" wrote:
>>I am using CVI 5.01 under Windows NT. Now I want to use Threads and need>to
include windows.h. >The trouble is that the CVI compiler cannot find all
the include-files in>windows.h. It seems that most >or all the include-files
in the section # ifndef WIN32_LEAN_AND_MEAN>are missing. Is this an error
in my installation of CVI? The rest of my>installation of both LabView >and
LabWindows CVI seems to be OK. Will it help to reinstall CVI?. Are>there
any easier ways to >solve the problem?>>Per Hveem
0 Kudos
Message 2 of 2
(3,079 Views)