Results 1 to 3 of 3

Thread: System Error ?!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    67

    System Error ?!

    Hi,
    i have this problem...
    after i install my program on a "clean" system, an error has occur after i press a "Open Button" on my program.
    (ActiveX component can't create object(429))

    "Open Button"
    Code:
    Private Sub cmdOpen1_Click()
    On Error GoTo Error_Handler
      Dim strFileNames As Variant
      Dim i As Integer
      strFileNames = Split(GetFiles, Chr(0))
      With List1
        If UBound(strFileNames) > 0 Then
          Preview1.Caption = strFileNames(0)
          For i = 1 To UBound(strFileNames)
            List1.AddItem strFileNames(i)
               Next
        Else
            .AddItem strFileNames(0)
        End If
      End With
      
      With List12
        If UBound(strFileNames) > 0 Then
            Preview1.Caption = strFileNames(0)
          For i = 1 To UBound(strFileNames)
            List12.AddItem strFileNames(0)
               Next
        Else
          .AddItem ""
        End If
      End With
      
    Error_Handler:
    Resume Next
    End Sub
    
    Public Function GetFiles(Optional ByVal sTitle As String = "Open files...") As String
      Dim sFilenames As String
      Dim cdlOpen As Object
      On Error GoTo ProcError
     
      Set cdlOpen = CreateObject("MSComDlg.CommonDialog")
      With cdlOpen
            .CancelError = True
        .Filter = "All Supported files (*.dat;*.avi;*.mp3;*.wav;*.mpg;*.wma;*.rmvb;*.m2p;*.wmv;*.mov;*.divx)|*.dat;*.avi;*.mp3;*.wav;*.mpg;*.wma;*.rmvb;*.m2p;*.wmv;*.mov;*.divx"
        .FilterIndex = 1
        .DialogTitle = sTitle
        .MaxFileSize = &H7FFF
        .flags = &H4 Or &H800 Or &H40000 Or &H200 Or &H80000
        .ShowOpen
        sFilenames = .FileName
      End With
    ProcExit:
      GetFiles = sFilenames
      Set cdlOpen = Nothing
      Exit Function
    ProcError:
      If Err.Number = &H7FF3 Then Resume Next
      MsgBox Err.Description & "(" & Err.Number & ")", vbExclamation, "Open error"
      sFilenames = ""
      Resume ProcExit
    End Function
    I have this file in my program..
    ActiveX Control:
    MSCOMCTL32.OCX
    Comdlg32.ocx
    MSCOMTL.OCX
    COMCTL32.OCX

    can some one tell me how to solve it?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: System Error ?!

    Is this happening on every machine you install on or just one or two?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2007
    Posts
    67

    Re: System Error ?!

    yes, every machine..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width