Thread: error C2660: 'CreateCall'

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    6

    error C2660: 'CreateCall'

    I am working with tapi 3 , Using Vc++6.0 and XP

    Why do I get a error Like this-->
    incoming.cpp(78) : error C2660: 'CreateCall' : function does not take 4 parameters


    My code is.........
    ////////////////
    BSTR bstrNumber;
    ITAddress * pAddress = NULL;
    ITBasicCallControl *pCallControl;
    HRESULT hr;


    bstrNumber = SysAllocString( L"9845550116" );
    hr = pAddress->CreateCall(bstrNumber,LINEADDRESSTYPE_PHONENUMB ER ,TAPIMEDIATYPE_AUDIO,&pCallControl);

    if ( SUCCEEDED(hr) )
    DoMessage(L" CreateCall Succeeded");

    pAddress->Release();

    ////////////////////////


    I tried using the constant numbers of the LINEADDRESSTYPE_PHONENUMBER
    & TAPIMEDIATYPE_AUDIO..


    where is the problem?

    I am a beginner to COM and tapi 3.

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    That is very strange, because MSDN states that the function takes 4 parameters. Can you post all of your code?
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed