|
-
May 2nd, 2002, 04:27 AM
#1
Thread Starter
Junior Member
-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
-
May 8th, 2002, 07:02 AM
#2
Frenzied Member
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.
-
May 30th, 2002, 02:30 PM
#3
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|