error C2660: 'CreateCall'

This is a discussion on error C2660: 'CreateCall' within the Windows Programming forums, part of the Platform Specific Boards category; I am working with tapi 3 , Using Vc++6.0 and XP Why do I get a error Like this--> incoming.cpp(78) ...

  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?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21