PRB: Running Visual Basic DHTML Applications on Internet Explorer 4 or 5 Causes Run-Time Error 13 'Type Mismatch' (258818)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01
  • Microsoft Internet Explorer (Programming) 4.01 SP1
  • Microsoft Internet Explorer (Programming) 4.01 SP2
  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.01
  • Microsoft Internet Explorer (Programming) 5.5
  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP3

This article was previously published under Q258818

SUMMARY

You distribute a Visual Basic DHTML application, but the application does not work correctly on some computer. Typically it gives run-time error 13, "type mismatch".

CAUSE

Either the application was developed on a computer with Internet Explorer 5.x and distributed to systems with Internet Explorer 4.x or it was developed on a computer with Internet Explorer 4.x and distributed to computers running Internet Explorer 5.x

RESOLUTION

Visual Basic DHTML applications developed on computers with Internet Explorer 4.x can only be run on computers with Internet Explorer 4.x, and applications developed on computers with Internet Explorer 5.x can only be run on computers with Internet Explorer 5.x.

MORE INFORMATION

The type library found in the Internet Explorer 4.x Mshtml.dll and in Internet Explorer 5.x Mshtml.tlb files are slightly different, and the virtual function tables are compiled to be slightly different when the .dll file is generated.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

241932 PRB: Run-Time Error 13 While Running VB DHTML Applications


For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:


Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbDHTML kbprb KB258818