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




