Which function is allowed to callback of QueueUserWorkItem() ? RRS feed

  • Question

  • Hello Everyone,

    I have given non static member function as a callback to QueueUserWorkItem() then it gives me following error,

    error C2440: 'type cast' : cannot convert from 'overloaded-function' to 'LPTHREAD_START_ROUTINE'

    but if i change member function to static it works as well as  if i give normal function as as callback then it works.

    my question  is can i give member function as a callback to QueueUserWorkItem()?

    Thanks in advance.

    • Moved by litdev Friday, July 24, 2015 12:43 PM
    Friday, July 24, 2015 9:27 AM


All replies