SMSInterceptor

Discussion in 'Questions (Windows Mobile)' started by grhsc, Aug 8, 2008.

  1. grhsc

    grhsc New Member

    I'm beginner,I tried to run the example:

    'Sms is a SMSMessage object and Intercept is a SMSInterceptor object.
    Sub Globals
    End Sub


    Sub App_Start
    Form1.Show
    Sms.New2
    Intercept.New1
    End Sub


    Sub Intercept_MessageReceived
    Sms.Value = Intercept.ReceivedMessage
    textBox1.Text = sms.Body
    textBox2.Text = Time(sms.DateReceived)
    textBox3.Text = sms.From
    End Sub

    However, an error occurred:
    Error compiling program. error description sms is not a konw control or object.

    help me,thanks!
    :sign0085:
     
  2. Mr_Gee

    Mr_Gee Active Member Licensed User

    Did you add "sms" as an object?
    Tools > components add the outlook.dll
    next go to tools > add object > select type
    enter the stuff mentioned here
    that should do the trick
     
  3. grhsc

    grhsc New Member


    thanks,I'll try....
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice