-
[VB6}Recieving & Extracting SMS from Gsm modem
Hi, i'm currently on a project about Computer connected to gsm modem and phone.
i need to recieve the sms from gsm modem and extract out to my GUI using VB6
I tot of using the 'Pulling' or 'Interrupt' method but both i also cannot use due to wrong codes.
the wrong codes is shown below. hope someone can edit or provide a better code
--pulling--
If Instr(MSComm1.InBufferCount, ">") >= 1 Then
MSComm1.Output = "AT+CMGF=" & "msgnum" & vbCr
A = 0
Do
DoEvents
A = A + 1
C = MSComm1.Input
ArrivedMsg.Text = C
If A = 2000 Then
Exit Do
End If
Loop Until InStr(C,">")
End If
---Interupt---
Select Case MSComm1.CommEvent
Case comEvRecieve
If(MSComm1.InBufferCount) >= 2 Then
MSComm1.Input = "AT+CMGR=" & "msgnum" & vbCr
C = MSComm1.Input
ArrivedMsg.Text = C
End If
End Select
----------
i'm super lousy at receiving part and currently keep looking thru sample to get better. pls someone out there help urgent thx =)
-
Just reciently, last month I think, there was a similar thread on SMS. Lots of code examples to look at, here is the thread:
http://forums.devx.com/showthread.php?t=161129
-
thx Ron Weller =) .
hope to find more pros assisting me =D .
Similar Threads
-
By swy456 in forum Mobile
Replies: 14
Last Post: 12-11-2012, 07:41 AM
-
By nigege in forum VB Classic
Replies: 12
Last Post: 09-05-2008, 10:29 AM
-
By azy_777 in forum Mobile
Replies: 1
Last Post: 05-03-2007, 11:07 AM
-
By remya.george in forum .NET
Replies: 1
Last Post: 01-24-2007, 12:45 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks