error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hooyoo

    error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found

    I have included windows.h, but it still says
    'InitializeCrit icalSectionAndS pinCount': identifier not found. Why?
    any ideas?

    Thanks.

  • David Lowndes

    #2
    Re: error C3861: 'InitializeCrit icalSectionAndS pinCount': identifier not found

    >I have included windows.h, but it still says
    >'InitializeCri ticalSectionAnd SpinCount': 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

    Comment

    • Hooyoo

      #3
      Re: error C3861: 'InitializeCrit icalSectionAndS pinCount': identifier not found

      On Aug 6, 3:23 pm, David Lowndes <Dav...@example .invalidwrote:
      I have included windows.h, but it still says
      'InitializeCrit icalSectionAndS pinCount': 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
      Yes, thank you very much. It works now. ^_^

      Comment

      Working...