BUG: Type Mismatch Error in Client After Modifying Server DLLID: Q190460
|
If an ActiveX DLL server has two classes and one class implements the
other, running a compiled client project referencing the server will
generate the following error after modifying and recompiling the server
with binary compatibility:
Run-time error 13: Type mismatch
Reopen the client project and compile it again.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
Public Sub Test()
End Sub
Implements Class2
Private Sub Class2_Test()
MsgBox "Testing the Server"
End Sub
Private Sub Form_Load()
Dim x As Server.Class2
Set x = New Server.Class1
TestMethod x
End Sub
Private Sub TestMethod (x As Server.Class2)
x.Test
End Sub
Public Sub Test2()
End Sub
Private Sub Class2_Test2()
End Sub
Run-time error 13: Type mismatch
Additional query words: kbdss kbDSupport kbVBp kbVBp600bug kbCompiler
Keywords :
Version :
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 16, 1999