Hi Hooyoo!
> I have included windows.h, but it still says
> 'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
> any ideas?
From documentation:
<quote>
To compile an application that uses this function, define _WIN32_WINNT
as 0x0403 or later.
</quote>
Greetings
Jochen
>I have included windows.h, but it still says
>'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
>any ideas?
If you've got stdafx.h, try removing the following line if you have
it.
#define WIN32_LEAN_AND_MEAN
Also note that MSDN says:
"To compile an application that uses this function, define
_WIN32_WINNT as 0x0403 or later"
Dave
Hooyoo - 07 Aug 2007 05:06 GMT
> >I have included windows.h, but it still says
> >'InitializeCriticalSectionAndSpinCount': identifier not found. Why?
[quoted text clipped - 11 lines]
>
> Dave
Yes, thank you very much. It works now. ^_^