borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (web address and textbox)Next Topic (Send Bulk Email) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : SMS Error plz help me for my code...
Poster Message
cristiemontes
Level: Trainee

Registered: 28-01-2009
Posts: 3

Ads by Lake Quincy Media
icon SMS Error plz help me for my code...

Private Sub SMS_ShortMsgReceived(ByVal SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, ByVal index As Integer, ByVal pSMS As SMS3ASuiteLib.IShortMessage) Handles SMS.ShortMsgReceived
        If SMSMemory = SMS3ASuiteLib.SMS_MEMORY_LOCATION.PHONE_MEMORY Then
            MsgBox("A short message received and stored in phone memory location " & index)
        ElseIf SMSMemory = SMS3ASuiteLib.SMS_MEMORY_LOCATION.SIM_MEMORY Then
            MsgBox("A short message received and stored in SIM memory location " & index)
        End If

    End Sub


the highlighted one is the error..


the error their is: Error 1 Method 'Private Sub SMS_ShortMsgReceived(SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, index As Integer, pSMS As SMS3ASuiteLib.IShortMessage)' cannot handle Event 'Public Event ShortMsgReceived(SMSMemory As SMS3ASuiteLib.SMS_MEMORY_LOCATION, index As Integer, pSMS As SMS3ASuiteLib.ShortMessage)' because they do not have the same signature. C:\Documents and Settings\KHITY\Desktop\SMS Settings\Project1.NET\MainForm.vb 155 171 Project1


[Edited by cristiemontes on 08-02-2009 at 12:08 PM GMT]

____________________________
an IT student here in the philipines..

08-02-2009 at 12:06 PM
View Profile Send Email to User Show All Posts | Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 643
icon Re: SMS Error plz help me for my code...

is it possible that there is a difference between IShortMessage and ShortMessage? you declared it as ByVal pSMS As SMS3ASuiteLib.IShortMessage but the error says it is pSMS As SMS3ASuiteLib.ShortMessage, the difference is the I at the beginning of ShortMessage

does it make difference if you use ByVal or ByRef

let me know...

[Edited by admin on 02-04-2009 at 03:51 PM GMT]

[Edited by admin on 02-04-2009 at 03:52 PM GMT]

____________________________
AndreaVB

Ads by Lake Quincy Media
02-04-2009 at 02:51 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Internet Applications : SMS Error plz help me for my code...
Previous Topic (web address and textbox)Next Topic (Send Bulk Email) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder