• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 16, 2024, 11:24:29 am

News:

SMF - Just Installed!


Multipart SEND

Started by herczegz, February 11, 2009, 07:14:32 pm

Previous topic - Next topic

herczegz

February 11, 2009, 07:14:32 pm Last Edit: February 11, 2009, 07:16:34 pm by herczegz
Hi Roman,

I tried the gsm VCL and I can't send multipart message. Can you help me wiht a short example?
(Delphi7 nrcomm V8.15)


thaks!

Herczeg


Roman Novgorodov

Hello

Usual TnrGsm separates long message on needed number of SMS parts.
You should just call method:
SmsSend(aPhone, aText:WideString; aConfirm :boolean)

If you need more deep control of SMS sending, you can form a PDU structure and use:
SmsSend(aPDU:TnrPduSms);

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

herczegz

Hi!
Thank you!!!
Mutipart SMS is now ok, but i have a problem. If I send message with less as 160 char with this chars: à,ì,è,ù your VLC coded the message automatical 16bit though in my language is: à,ì,è,ù on 7 bit coding in GSM spec. (Hungaryan and Italien)
I try send message with pdu mode, and set manual the 7bit coding, but i becom ACCESS VIOLATION if i try set pdu parameters.
Thanks!

exampe code:
procedure TForm1.FzttSMS1Click(Sender: TObject);
var aSmsa: TnrPduSms;
begin
aSmsa.Incoming := False; //<------ACCESS VIOLATION in this line
end;

end.

Roman Novgorodov

Hello

Please create the instance of class before use the object.

aSmsa := TnrPduSms.Create(False);

You can start to read about Object Oriented Programming (OOP) from here:
http://en.wikipedia.org/wiki/Object-oriented_programming

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.