Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CreateTimerQueue

CreateTimerQueue

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structureshelp
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shaina2231
    wrote on last edited by
    #1

    i am using CreateTimerQueue() funcation to create queue for timers and i have include windows.h and winbase.h files but compiler give error that CreateTimerQueue() is undeclared identifier C:\Documents and Settings\Administrator\Desktop\radio_check_ selection\vep.cpp(344) : error C2065: 'CreateTimerQueue' : undeclared identifier what can be reason and its solution

    N N J 3 Replies Last reply
    0
    • S shaina2231

      i am using CreateTimerQueue() funcation to create queue for timers and i have include windows.h and winbase.h files but compiler give error that CreateTimerQueue() is undeclared identifier C:\Documents and Settings\Administrator\Desktop\radio_check_ selection\vep.cpp(344) : error C2065: 'CreateTimerQueue' : undeclared identifier what can be reason and its solution

      N Offline
      N Offline
      nbugalia
      wrote on last edited by
      #2

      shaina2231 wrote:

      error C2065

      Following are the reasons for Error C2065 from MSDN. 1. You are compiling with a debug version of the C runtime, declaring a Standard C++ Library iterator variable in a for loop, and then trying to use that iterator variable outside the scope of the for loop. Compiling Standard C++ Library code with a debug version of the C runtime implies /Zc:forScope. See Debug Iterator Support for more information. 2. You may be calling a function in an SDK header file that is currently not supported in your build environment. 3. Omitting necessary include files, especially if you define VC_EXTRALEAN, WIN32_LEAN_AND_MEAN, or WIN32_EXTRA_LEAN. These symbols exclude some header files from windows.h and afxv_w32.h to speed compiles. (Look in windows.h and afxv_w32.h for an up-to-date description of what's excluded.) 4. Identifier name is misspelled. 5. Identifier uses the wrong uppercase and lowercase letters. 6. Missing closing quote after a string constant. 7. Improper namespace scope. To resolve ANSI C++ Standard Library functions and operators, for example, you must specify the std namespace with the using directive. The following example fails to compile because the using directive is commented out and cout is defined in the std namespace:

      shaina2231 wrote:

      what can be the solution

      Please make sure that you are not doing any of them.

      1 Reply Last reply
      0
      • S shaina2231

        i am using CreateTimerQueue() funcation to create queue for timers and i have include windows.h and winbase.h files but compiler give error that CreateTimerQueue() is undeclared identifier C:\Documents and Settings\Administrator\Desktop\radio_check_ selection\vep.cpp(344) : error C2065: 'CreateTimerQueue' : undeclared identifier what can be reason and its solution

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        The CreateTimerQueue() will only be available only if _WIN32_WINNT is greater than or eual to 0x0500. So in the project settings->c/c++->Pre processor definition put _WIN32_WINNT=0x0500 or in the stdafx.h define the macro as #define _WIN32_WINNT 0x0500

        nave [OpenedFileFinder] [My Blog]

        1 Reply Last reply
        0
        • S shaina2231

          i am using CreateTimerQueue() funcation to create queue for timers and i have include windows.h and winbase.h files but compiler give error that CreateTimerQueue() is undeclared identifier C:\Documents and Settings\Administrator\Desktop\radio_check_ selection\vep.cpp(344) : error C2065: 'CreateTimerQueue' : undeclared identifier what can be reason and its solution

          J Offline
          J Offline
          Jijo Raj
          wrote on last edited by
          #4

          That function requires windows 2000 or above. So take Project settings, C/C++ tab and add _WIN32_WINNT=0x0500 to the preprocessor definitions. Hope at this time, it will compile. ;) Regards, Jijo.

          _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

          S 1 Reply Last reply
          0
          • J Jijo Raj

            That function requires windows 2000 or above. So take Project settings, C/C++ tab and add _WIN32_WINNT=0x0500 to the preprocessor definitions. Hope at this time, it will compile. ;) Regards, Jijo.

            _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

            S Offline
            S Offline
            shaina2231
            wrote on last edited by
            #5

            plz send me link regarding Queue Timer examples or Demos

            C 1 Reply Last reply
            0
            • S shaina2231

              plz send me link regarding Queue Timer examples or Demos

              C Offline
              C Offline
              Chandrasekharan P
              wrote on last edited by
              #6

              Check this http://msdn.microsoft.com/en-us/library/ms687003(VS.85).aspx[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups