the function TryEnterCriticalSection() (used in thread.h) applies only to
WinNT and newer. It would be a pity if programs using this library could
not work on Win 95 or Win 98. In my opinion at least :-)
I also encounter the folowing problem:
I am running Win NT with VC++ 5.0. When I try to compile thread.h
I receive the message that the symbol TryEnterCriticalSection() could
not be resolved. Looking in winbase.h I find the following code:
#if(_WIN32_WINNT >= 0x0400)
WINBASEAPI
BOOL
WINAPI
TryEnterCriticalSection(
LPCRITICAL_SECTION lpCriticalSection
);
#endif /* _WIN32_WINNT >= 0x0400 */
So I tried to find out, what value of _WIN32_WINNT is and
what a funny surprise: It is not defined at all.
BTW: I am sure that I run WinNT! :-]
Does anybody know about this M$ feature or must I define
_WIN32_WINNT on my own?
Many thanks in advance,
Byron
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
the function TryEnterCriticalSection() (used in thread.h) applies only to
WinNT and newer. It would be a pity if programs using this library could
not work on Win 95 or Win 98. In my opinion at least :-)
I also encounter the folowing problem:
I am running Win NT with VC++ 5.0. When I try to compile thread.h
I receive the message that the symbol TryEnterCriticalSection() could
not be resolved. Looking in winbase.h I find the following code:
#if(_WIN32_WINNT >= 0x0400)
WINBASEAPI
BOOL
WINAPI
TryEnterCriticalSection(
LPCRITICAL_SECTION lpCriticalSection
);
#endif /* _WIN32_WINNT >= 0x0400 */
So I tried to find out, what value of _WIN32_WINNT is and
what a funny surprise: It is not defined at all.
BTW: I am sure that I run WinNT! :-]
Does anybody know about this M$ feature or must I define
_WIN32_WINNT on my own?
Many thanks in advance,
Byron
There has been a proposed new mutex class that is being tested which should
address this issue of "portability" between win95/98 and winnt...