thank you for your answer!

//initial receive sms struct

Err err,error;
UInt16 gTelRefNum;
TelAppID gTelAppID;

TelSmsMultiPartExtensionType extensionType;
TelSmsExtensionType ext;
TelSmsDateTimeType gTeldatetime;
TelSmsGetAvailableStorageType m_Stores;
UInt16 m_Index;
TelSmsDeliveryMessageType m_Sms;
TelSmsDeliveryAdvancedGSMType tmp;

void InitSms() //
{
extensionType.bytesSent = 0;
extensionType.partCurrent = 0;
extensionType.partCount = 0;
extensionType.partId = 0;

ext.extensionTypeId = kTelSmsMultiPartExtensionTypeId;
ext.extension.mp = extensionType;

gTeldatetime.absolute = false;
gTeldatetime.dateTime = 86400*2;

tmp.protocolId = kTelSmsDefaultProtocol;
tmp.replyPath = false;
tmp.serviceCenterNumber = "+8613800755500";
tmp.serviceCenterNumberSize = kTelMaxPhoneNumberLen + 1;


m_Sms.version = kTelSmsAPIVersion; m_Sms.index = m_Index; m_Sms.timeStamp = gTeldatetime; m_Sms.dataSize = m_DataSize; m_Sms.data = (unsigned char*)MemPtrNew(m_DataSize+1); m_Sms.dataCodingScheme =kTelSmsUCS2Encoding ; five ways of coding /* kTelSms8BitsEncoding 0 8-bit encoding. kTelSmsBitsASCIIEncoding 1 ANSI X3.4 encoding. kTelSmsIA5Encoding 2 CCITT T.50 encoding. kTelSmsIS91Encoding 3 TIA/EIA/IS-91 section 3.7.1 encoding. kTelSmsUCS2Encoding 4 UCS2 encoding; used with GSM only. kTelSmsDefaultGSMEncoding */ m_Sms.originatingAddressSize=kTelMaxPhoneNumberLen + 1; m_Sms.originatingAddress ="+223388"; m_Sms.otherToReceive=false; m_Sms.reportDeliveryIndicator=true; m_Sms.standardType = kTelNwkGSM; m_Sms.advancedParams.advancedGSM=tmp; m_Sms.extensionsCount = 5; m_Sms.extensionsP = &ext;

}

Versions of SMSLib prior to Palm OS 5.3 don't support UCS-2, IIRC.
You might be able to get it to work properly by converting to UCS-2
as above you said:

yes.
at present,my run circumstance:
I receiving sms with using telephony sms function bypassing SMSLib
on pre-5.3 versions of Palm OS.
now,I select the coding ways of kTelSmsUCS2Encoding,
which coding TelSmsReadMessage function is executed then return?
unicode or else 8-bit raw?
I think it's unicode ,then I write converting function from unicode string
to GB string
but it's error also.
I don't understand what's mean for selecting as above one of fives coding
ways
which coding is stored sms in local pda when peer coding ways is selected
for receiving sms.
if I select as above one of five ways,
which coding TelSmsReadMessage function is executed then return?
I can't trace return coding on emulator.
Please Answer.

thank you very much in advance
Besh Wishes!



_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to