Results 1 to 3 of 3

Thread: -2147467259(80004005) automation error

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    17

    Thumbs down -2147467259(80004005) automation error

    When I run following code in debug mode in VB5 on Winnt4, it runs ok. But when I make and EXE and run it, I get Automation Error -2147467259(80004005)

    I have IE6


    Sub Main()
    'Check if ACP pages need review date to be changed.
    'In project references need
    '1) SHDOCVW.DLL for MS Internet Controls
    '2) MSHTML.TLB for MS HTML objects

    Dim o As New SHDocVw.InternetExplorer
    Dim h As New HTMLDocument
    Dim b As New HTMLBody
    Dim strHTML As String
    Dim pos1 As Integer
    Dim pos2 As Integer
    o.Visible = False
    o.navigate "http://alice.intra.bt.com/minder/networks/"
    Set h = o.document
    Set b = h.body
    strHTML = h.body.innerHTML
    pos1 = 0
    pos1 = InStr(1, strHTML, "agasheh", 1)
    pos2 = 0
    pos2 = InStr(1, strHTML, "ghosh", 1)

    If pos1 <> 0 Or pos2 <> 0 Then
    MsgBox "ACP page needs review date to be checked. Please goto http://alice.intra.bt.com/minder/networks/", vbCritical
    End If

    Set b = Nothing
    Set h = Nothing
    Set o = Nothing

    End Sub


    Any clues ?

    Harshad
    Harshad Agashe

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Maybe you could try commenting out all the lines, and then enabling them once by one to see where your error is? Although I heard someone on here saying that they tried changing the compile settings to P-code rather than Native code and it all worked fine after that.

  3. #3
    Member Keger's Avatar
    Join Date
    Jun 2001
    Location
    Detroit (Hell)
    Posts
    57
    Did you figure this one out?

    Some people get this error when they install my game. So,
    I would really like to know what it is.... Most people have
    no problems.

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