Hi All,

I am trying to send a small SMS message via the SMS exchange library on my
Tungsten  T2. The example given on the palm web page is for a simple text
string to the memopad, which I have working. However, I have tried to modify
it for SMS but I get an error "Invalid parameter in exchange request.
(0x150E)" and when I leave the application the palm resets.

                                    Please help, please, please, grovel, etc
....
                                                                    Richard


My code is :

  ExgSocketType  exgSocket;
  Err            err = 0;
  Char          *textBuf = "test"; // actual message that will be sent to
local memopad
  UInt32         size = StrLen(textBuf) + 1;

  MemSet(&exgSocket, sizeof(exgSocket), 0);

  exgSocket.description = "Testing SMS from me";
  exgSocket.name = "?_local:me.sms";

  err = ExgPut(&exgSocket);

  {
    SmsParamsType *SmsParams =(SmsParamsType *)exgSocket.socketRef;
    SmsParams->data.send.destinationAddress = "+447788921111";
  }

  if (err == 0)
  {
    ExgSend(&exgSocket,textBuf,size,&err);
    ExgDisconnect(&exgSocket,err);
  }




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

Reply via email to