Hi,
I wrote a programme to communicate with a GSM modem using the ComPort component (
www.winsoft.sk). To send a sms I use the following code:
ComPort->WriteString("AT+C
MGF=1\xd")
;
ComPort->WriteString("AT+C
MGS="07900
00000"\xd"
);
ComPort->WriteString("Test
-SMS \xd ");
I get the following error message for it:
[C++ Error] MainForm.cpp(340): E2380 Unterminated string or character constant
[C++ Error] MainForm.cpp(340): E2121 Function call missing )
[C++ Error] MainForm.cpp(340): E2379 Statement missing ;
[C++ Error] MainForm.cpp(340): E2134 Compound statement missing }
It works fine when I am using a Edit field to input the text.
What do I do wrong? Do I have to use the text different? I mean the text I would like to send. Maybe I have to transform it first!
Thanks,
Ronald
Start Free Trial