Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2007

Tip: Looking for answers? Try searching our database.

error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hooyoo - 06 Aug 2007 08:03 GMT
I have included windows.h, but it still says
'InitializeCriticalSectionAndSpinCount': identifier not found.  Why?
any ideas?

Thanks.
Jochen Kalmbach [MVP] - 06 Aug 2007 08:20 GMT
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
David Lowndes - 06 Aug 2007 08:23 GMT
>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. ^_^

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.