Microsoft KB Archive/189489

= FIX: Binary Compatibility Broken When Adding Events =

Article ID: 189489

Article Last Modified on 10/28/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q189489



SYMPTOMS
Adding Events to an ActiveX EXE Object whose instancing property is set to "PublicNotCreatable" may result in the following Binary Compatibility error:

The  Class Implemented An Interface In The Version-Compatible Component, But Not In The Current Project.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0



Steps to Reproduce Behavior
 Create a new ActiveX EXE project in Visual Basic 5.0. Class1 is created by default. Set the Class1 instancing property to "2-PublicNotCreatable." Add a new Class Module (Class2) to the project. Select Make Project1.exe from the File menu. Select Project1 Properties from the Project menu, then select the Component tab. Select the Binary Compatibility option button under the Version Compatibility section. Project1.exe should automatically be shown in the textbox.</li>  In the Class1 code window, add the following statement: Public Event MyEvent </li> Repeat step 6. Select "Yes" to overwrite the older file when asked. The following message will appear:

The Class1 Class Implemented An Interface In The Version-Compatible Component, But Not In The Current Project.

</li></ol>

Additional query words: kbDSupport kbActiveX kbVBp500bug kbVBp600fix kbVBp kbdss

Keywords: kbbug kbfix KB189489

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.