×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    A question about CSIPDialog and CSIPInviteDialogAssoc

    Hello,

    For the following comparison in my code in the call-back function to be implemented by the application, void MSIPConnectionObserver::IncomingRequest(CSIPServerTransaction *aTransaction, CSIPDialog &aDialog)

    if(aDialog == *pSIPInviteDialogAssoc->Dialog())

    where pSIPInviteDialogAssoc is of type CSIPInviteDialogAssoc*, I get the following compilation error:

    a pointer/array type was expected for this operation instead of 'CSIPDialog'

    CSIPInviteDialogAssoc inherits from CSIPDialogAssocBase, and inherits the Dialog() method from CSIPDialogAssocBase.

    And CSIPDialog provides a TBool operator==(const CSIPDialog &) const method for comparison.

    I am not sure what is causing the compiler to show this error. Any suggestions would be appreciated.

    TIA
    Vin

  2. #2
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: A question about CSIPDialog and CSIPInviteDialogAssoc

    The error was in using the pointer dereferencing syntax, whereas the method Dialog(0 returns a reference. The following code change resolved the issue:

    if(aDialog == *pSIPInviteDialogAssoc->Dialog())

    changed to

    if(aDialog == pSIPInviteDialogAssoc->Dialog())

Similar Threads

  1. just question
    By ram4soft in forum Symbian
    Replies: 3
    Last Post: 2007-08-21, 11:20
  2. CSIPInviteDialogAssoc usage in S60 3.0
    By dracula78 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-08-08, 07:43
  3. question
    By yanhuy in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-12-19, 09:49
  4. a question about command and a question about s60
    By t4kesting in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-24, 08:21
  5. Replies: 1
    Last Post: 2003-04-14, 03:14

Posting Permissions

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