在做Netmeeting二次开发的时候,在第三次调用该函数的时候失败,哪位高手知道可能的原因,多谢多谢!

解决方案 »

  1.   

    返回值是什么?Return Values
    This method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following: S_OK 
    The connection has been established and *pdwCookie has the connection token. 
    E_POINTER 
    The value in pUnk or pdwCookie is not valid. For example, either pointer may be NULL. 
    CONNECT_E_ADVISELIMIT 
    The connection point has already reached its limit of connections and cannot accept any more. 
    CONNECT_E_CANNOTCONNECT 
    The sink does not support the interface required by this connection point. 
    Res
      

  2.   

    多谢,这个在MSDN中我已经看到了,但是那个返回值我测试过,不是其中的任何一种。因为我的程序启动初始化Netmeeting的COM API的时候调用它是成功的,创建会议时调用也是成功的,就是在创建呼叫对象时,连接呼叫对象的sink的时候总是连接不上,这段代码是我参照Netmeeting SDK中的例子写的,搞不清是哪里出了问题。请问您还知不知道调用失败还会有什么原因?