×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Unhappy Another problem when using rsendas and rsendasmessage

    The compile always fails, But I do not know the reason, pls tell me.
    some info may also be helpful.

    Note that: rsendas and rsendasmessage is new in symbian os9, and there is no example.

    necessary header files
    #include <rsendas.h>
    #include <rsendasmessage.h>
    #include <csendasmessagetypes.h>
    #include <senduiconsts.h>
    #include <smut.h>

    necessary source code
    RSendAsMessage sendAsMessage;
    sendAsMessage.CreateL(sendAs, KUidMsgTypeSMS);
    CleanupClosePushL(sendAsMessage);

    // prepare the message
    sendAsMessage.AddRecipientL(_L("8613911351706"), RSendAsMessage::ESendAsRecipientTo);
    sendAsMessage.SetBodyTextL(_L("aMessageBody"));

    // send the message
    sendAsMessage.SendMessageAndCloseL();
    sendAs.Close();
    // sendAsMessage (already closed)
    part of mmp:
    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
    LANG SC
    CAPABILITY NetworkServices ReadUserData WriteUserData WriteDeviceData ReadDeviceData

    compile link error:
    Severity Description Resource In Folder Location Creation Time Id
    2 Undefined symbol: 'int RSendAs::Connect(void) (?Connect@RSendAs@@QAEHXZ)' referenced from 'void MainL(void) (?MainL@@YAXXZ)' in TestEmail.cpp:45 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2179
    2 Undefined symbol: 'void RSendAsMessage::AddRecipientL(class TDesC16 const &, enum RSendAsMessage::TSendAsRecipientType) (?AddRecipientL@RSendAsMessage@@QAEXABVTDesC16@@W4TSendAsRecipientType@1@@Z)' referenced from 'void MainL(void) (?MainL@@YAXXZ)' in TestEmail.cpp:53 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2183
    2 Undefined symbol: 'void RSendAsMessage::Close(void) (?Close@RSendAsMessage@@QAEXXZ)' referenced from 'void CleanupClose<class RSendAsMessage>::Close(void *) (?Close@?$CleanupClose@VRSendAsMessage@@@@CAXPAX@Z)' in e32base.inl:3140 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2188
    2 Undefined symbol: 'void RSendAsMessage::CreateL(class RSendAs &, class TUid) (?CreateL@RSendAsMessage@@QAEXAAVRSendAs@@VTUid@@@Z)' referenced from 'void MainL(void) (?MainL@@YAXXZ)' in TestEmail.cpp:49 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2181
    2 Undefined symbol: 'void RSendAsMessage::SendMessageAndCloseL(void) (?SendMessageAndCloseL@RSendAsMessage@@QAEXXZ)' referenced from 'void MainL(void) (?MainL@@YAXXZ)' in TestEmail.cpp:57 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2187
    2 Undefined symbol: 'void RSendAsMessage::SetBodyTextL(class TDesC16 const &) (?SetBodyTextL@RSendAsMessage@@QAEXABVTDesC16@@@Z)' referenced from 'void MainL(void) (?MainL@@YAXXZ)' in TestEmail.cpp:54 TestEmail line 0 27. kesäkuuta 2006 10:07:26 2185

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Another problem when using rsendas and rsendasmessage

    hi,

    include sendas2.lib in ur mmp

    and plz don't repost the same posts again. so it will be used for furthur reerences.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Smile Re: Another problem when using rsendas and rsendasmessage

    OK, thanks
    it works
    Quote Originally Posted by mateen_maldar
    hi,

    include sendas2.lib in ur mmp

    and plz don't repost the same posts again. so it will be used for furthur reerences.

    Regards,
    Mateen Maldar

  4. #4
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Wink Re: Another problem when using rsendas and rsendasmessage

    How to test it?
    using an emulator to test the program to send a sms

    Quote Originally Posted by mateen_maldar
    hi,

    include sendas2.lib in ur mmp

    and plz don't repost the same posts again. so it will be used for furthur reerences.

    Regards,
    Mateen Maldar

  5. #5
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Another problem when using rsendas and rsendasmessage

    hi,

    write an sms for messaging folder and send it to any number with the service centre numbe(u can give any number by default) then check whether it is going to the sent folder and then

    send sms from ur application and see whether it is going to sent folder.

    or u can use a NCF for communicator with another emulator or device.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

Similar Threads

  1. Using RSendAs and RSendAsMessage
    By xhsoldier in forum Symbian
    Replies: 7
    Last Post: 2009-08-05, 14:42
  2. Another problem when using rsendas and rsendasmessage
    By xhsoldier in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-18, 12:25
  3. Replies: 3
    Last Post: 2006-06-27, 09:39
  4. Using RSendAs and RSendAsMessage
    By xhsoldier in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-06-26, 10:20

Posting Permissions

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