LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler environment variables

Hi all,

I'm trying to use the function implemented in
the .
The SDK help on that item saids that it suported only under
winnt4.0/2000 (so it fits my case).

BUT when I compile the module contaning this call it returns with the
error: "Missing prototype"!!! although I encluded the and
the as written in the SDK help.

note: The also located in that dll warks fine!

I've searched in the for the problematic function and foud
the following:

#if(_WIN32_WINNT >= 0x0400)
WINBASEAPI
BOOL
WINAPI
TryEnterCriticalSection(
IN OUT LPCRITICAL_SECTION lpCriticalSection
);

#endif /* _WIN32_WINNT >= 0x0400 */

It seems that the compil
er environment variables isn't set correctly
somehow.
[Image]

How can I change the Compiler environment variables to match my needs?

Thanks...
0 Kudos
Message 1 of 2
(3,029 Views)
The Options menu in the Project Window has an entry for Compiler
Defines. Try adding this: /D_WIN32_WINNT=0x0400

Peter
0 Kudos
Message 2 of 2
(3,029 Views)