Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make a project that send sms in urdu language through visual basic6. For this purpose , i am using Urdu Textbox(A tool for writing Urdu Language) and Following code.
VB
MSComm1.CommPort = 6
If MSComm1.PortOpen = False Then
MSComm1.PortOpen = True
With MSComm1

    .Output = "AT" & Chr$(13)
    .Output = "AT+CMGF=1" & Chr$(13) & Chr(10)
    .Output = "AT+CMGS=" & Chr$(34) & Text1.Text & Chr$(34) & Chr(13) & Chr(10)
    .Output = text2.Text & Chr(26)
    MsgBox "Message has send"
    ``      End With
    End If

When i click command1 button, sms has send but my mobile show me message as ???? ??? ?????? What is the wrong with my code.
Posted
Updated 12-May-14 16:05pm
v2
Comments
Sergey Alexandrovich Kryukov 12-May-14 22:25pm    
VB6? Forget it. To support Unicode, use VB.NET. Or, for that matter, nearly anything modern. Not only VB6 is badly outdated, it wasn't good even at the moment it was introduced to the market. It was wildly popular and maybe still is, but does it tell anything about its usefulness? No; it's just there are social mechanisms which create popularity for nearly the worst thing, including VB6.
—SA
[no name] 12-May-14 22:40pm    
Besides VB6 being dead and you are not going to find too many people that will touch it, as near as I can recall... VB6 != Unicode.
Member 10018770 13-May-14 0:08am    
But every problem have solution.
[no name] 13-May-14 10:24am    
Yes and do you know what the difference is between unicode and ANSI characters?
Member 10018770 13-May-14 0:12am    
If i use vb2008 then what way i choose for sending Urdu Language SMS?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900