×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Error with RTP API

    Hi everybody
    I am programing a RTP server on S60 5th Emulator

    I have an error of compilation when I use this code :
    http://wiki.forum.nokia.com/index.php/S60_RTP/RTC_API

    before the RTP session opening, in this line :
    Code:
    iRtpSession = CRtpAPI::NewL(*this);

    The error is :
    illegal implicit conversion from 'CRTPEngine' to MRtpErrNotify &
    And Carbide c++ tell me that NewL is defined like that :
    Newl(MRtpErrNotify &aErrNotify) : CRtpAPI*

    I tried to declare a variable with MRtpErrNotify type and put it in NewL
    Code:
    MRtpErrNotify err;
    iRtpSession = CRtpAPI::NewL(&err);
    and I get :
    illegal use of abstract class ('MRtpErrNotify::ErrorNotify(int)')
    undefined idntifier 'err'.

    So do you know why this exemple don't work on my pc ? or perhaps how resolv this problem?
    thanks.
    Regards and Peace.

    Cartouche67.

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

    Re: Error with RTP API

    you need to derive your class from the MRtpErrNotify , and implement all pure virtual functions defined in it.

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: Error with RTP API

    Ok, I added (in bold):

    Code:
    class CRTEngine : public CBase,
                      public MRtpErrNotify
    
    (..)
    void ErrorNotify(TInt aErrCode);
    and

    Code:
    void CRTEngine::ErrorNotify(TInt aErrCode)
    {
    }
    because ErrorNotify is the only virtual function of MRtpErrNotify.
    Now I have this error in the same line as before :
    illegal operands 'RRtpSession' = 'CRtpAPI *'
    Regards and Peace.

    Cartouche67.

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 30
    Last Post: 2014-07-15, 05:44
  2. How can i access Calendar database using PC Connectivity SDK?
    By sazzad_101 in forum PC Suite API and PC Connectivity SDK
    Replies: 8
    Last Post: 2009-02-18, 14:49
  3. S60 API Partnering Program
    By Nokia Ron in forum News and Announcements
    Replies: 9
    Last Post: 2008-04-16, 18:28
  4. Rebirth of com.nokia.mid.ui proprieptary API?
    By peterblazejewicz in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2007-01-16, 19:40
  5. 技术文档:MIDP 2.0安全机制 与 MIDlet 数字签名
    By wotrust in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2006-12-30, 07:42

Posting Permissions

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