INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Cannot create ActiveX component...  (Read 1526 times)

tommer

  • Recent member
  • *
  • Posts: 19
Cannot create ActiveX component...
« on: December 11, 2005, 02:58:55 pm »

Hello

I'm (still...) testing out Automation (using VB 2005 express edition, but I get the following error code:

Quote
Cannot create ActiveX component.

I'm using the latest version of Media Center, and I've also tried to run:

"C:\Programfiler\J River\Media Center 11\Media Center.exe" \Register

Suggestions?

Thanks
Tom

Code: [Select]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim myobj As Object

        myobj = GetObject(, "MediaJukebox Application")

        If Err.Number = 429 Then
            myobj = CreateObject("MediaJukebox Application")
        End If

    End Sub
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Cannot create ActiveX component...
« Reply #1 on: December 11, 2005, 04:52:44 pm »

how about adding

    On Error Resume Next

Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

tommer

  • Recent member
  • *
  • Posts: 19
Re: Cannot create ActiveX component...
« Reply #2 on: December 11, 2005, 05:28:44 pm »

how about adding

    On Error Resume Next



Great, that solved it  :)

Thank you!!!
Logged
Pages: [1]   Go Up