各位前辈,在Visual C++ 6.0下面Build一个例程时,编译器提示error C2039: 'CoWaitForMultipleHandles' : is not a member of '`global namespace'',在vc的头文件中确实也找不到这样一个函数的声明,然后我到microsoft的网站上搜索了一下,它提示该函数在objbase.h中声明,但没看到!想着是我的Visual C++ 6.0版本太老,就download了一个Visual Studio Service Pack 6.0来装了,结果问题依然,请问怎么解决?谢谢!

解决方案 »

  1.   

    HRESULT CoWaitForMultipleHandles(
         [in] DWORD dwFlags,
         [in] DWORD dwTimeout,
         [in] ULONG cHandles,
         [in, size_is(cHandles)] HANDLE *pHandles,
         [out] DWORD *pdwIndex); The dwFlags parameter is a bitmask that can be some combination of the following:  
     enum COWAIT_FLAGS {
         COWAIT_WAITALL = 0x00000001,
         COWAIT_ALERTABLE = 0x00000002
     };
    May 1999
    msj
    http://www.microsoft.com/msj/0599/com/com0599.aspx
     
      

  2.   

    谢谢!函数的原型我现在知道了,问题是我的Visual C++ 6.0环境中objbase.h中没有这个函数的声明,是不是版本太低了?还是其他?请指点迷津
      

  3.   

    need new platform sdk.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/htm/cmf_a2c_50z7.asp
      

  4.   

    的确need new platform sdk,谢谢!