2 Replies - 1812 Views - Last Post: 12 December 2013 - 07:58 AM Rate Topic: -----

#1 kiad_198  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 128
  • Joined: 19-November 08

run-time error 429: ActiveX component can't create object

Posted 25 September 2013 - 07:41 PM

Hi Guys,

I have a GSM Modem SMS sender program download. I tried to run it in Window 7 32bit OS but it gives me an error of "run-time error 429" and when I debug it, it point me to
Set Modem = New SMSModem
.

Here's the full code:

Option Explicit

' Modem object
    Private WithEvents Modem As SMSModem ' use WithEvents to detect events raised by the modem


' Open communications with modem
Private Sub Form_Load()
    ' TO DO: Please set your communication port number here!
    Const commPort = 1  ' COM1:
    Set Modem = New SMSModem
    ' TO DO: Please set your modem type here! (e.g. gsmModemSiemens, gsmModemAudiotel,...)
    Call Modem.OpenComm(gsmModemSimulator, commPort, , smsNotifyAll)
End Sub

' Close communications with modem
Private Sub Form_Unload(Cancel As Integer)
    Call Modem.CloseComm
    Set Modem = Nothing
End Sub

' Send an SMS
Private Sub cmdSend_Click()
    Dim msgRef As Integer
    msgRef = Modem.SendTextMessage(txtDest, txtMessage, (chkStatusReport = vbChecked))
    MsgBox txtMessage, , "Message #" & CStr(msgRef) & " sent to " & txtDest
End Sub

' Modem event: SMS received
Private Sub Modem_MessageReceived(message As SMSDeliver)
    MsgBox message.Body, , "New message from " & message.Originator
End Sub

' Modem event: status report received (delivery receipt)
Private Sub Modem_StatusReport(statusRpt As SMSStatusReport)
    MsgBox "Message #" & CStr(statusRpt.MessageRef) & " sent to " & statusRpt.Destination _
        & " is now " & statusRpt.MessageStatusName, , _
        "Status report for " & statusRpt.Destination
End Sub




What is that mean?
How can I solve this problem?
What software do I need to download?

Thanks guys,

This post has been edited by kiad_198: 25 September 2013 - 07:42 PM


Is This A Good Question/Topic? 0
  • +

Replies To: run-time error 429: ActiveX component can't create object

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 299
  • View blog
  • Posts: 1,768
  • Joined: 26-March 09

Re: run-time error 429: ActiveX component can't create object

Posted 26 September 2013 - 12:33 AM

Do you have a reference to "SMSModem"?
Was This Post Helpful? 0
  • +
  • -

#3 nikhilgup  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 08-November 13

Re: run-time error 429: ActiveX component can't create object

Posted 12 December 2013 - 07:58 AM

Hi,

This usually occurs if you miss reference to the object i.e may be some required ocx is not registered on the PC you are trying.

Try to find the reference for SMSModem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1