×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    53

    Make call with CTelephony

    Hi, All.

    I have a problem with Ctelephony. When I try this code, I have a error.How can I fix it?

    .h file ;
    private:
    MCallDialerCallBack& iCallBack;

    .cpp file ;
    CMyCallDialer *imycaller;
    imycaller = CMyCallDialer::NewL(iCallBackk);

    Error;

    1254828344386 '&' reference member 'iCallBackk' is not initialized

    thank you all.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Make call with CTelephony

    you need to derive your AO class from the MCallDialerCallBack, and implement the functions defined in the interface, and then use the this-pointer when giving the reference to the CMyCallDialer class.

  3. #3
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    53

    Re: Make call with CTelephony

    Sorry I didn't understand. I'm newbie on c++. Can you give me an example?
    My MCallDialerCallBack class;

    class MCallDialerCallBack
    {
    public:
    virtual void DialerDone(TInt aError)=0;
    };

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Make call with CTelephony

    in you Cpp file, you have some class I suppose, in which you have the CMyCallDialer *imycaller; as a member. Then just derive the class from MCallDialerCallBack, and implement the DialerDone() function in it, then you can use the this-pointer inside the class, in the place where the MCallDialerCallBack would be used.

  5. #5
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: Make call with CTelephony

    Code:
    MCallDialerCallBack& iCallBack;
    this "iCallBack" is just a reference, which is needed to initialize(creat an object of it/set to the pointer of an object), before using it.


    regards,

    Pai
    Symbian && Android && iPhoneOS

Similar Threads

  1. Make call
    By symbi4n_programmer in forum Symbian
    Replies: 5
    Last Post: 2009-03-04, 14:52
  2. How to make video call?
    By krishna.achari in forum Symbian
    Replies: 1
    Last Post: 2009-02-18, 18:44
  3. Replies: 2
    Last Post: 2008-05-02, 11:41
  4. How to let system make video call?
    By ppiggy in forum Symbian
    Replies: 1
    Last Post: 2006-11-27, 15:19
  5. How to make simultaneous VOICE and DATA call on a Nokia Phone?
    By venkat_nokia in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-04-28, 12:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×