BUG: Public Friend Properties Break Binary Compatibility

ID: Q185993


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 5.0


SYMPTOMS

When compiling an ActiveX DLL or ActiveX EXE using Binary Compatibility, the following error message might occur:

<property name> in the <class name> class module has a procedure ID that differs from a similar declaration in the version-compatible component.
This problem occurs even if you have not modified any interface within the ActiveX Server.


CAUSE

When descriptions are added to a Let property declared as Friend and having a corresponding Public Get property, the above error message might occur during compilation.


RESOLUTION

Using Notepad.exe (or a similar text editor), edit each .cls file that matches the scenario above. Remove all VB_Description tags within property functions that have a "Public" Get and a "Friend" Let.

The following is an example of a VB_Description tag:


   Attribute SetName.VB_Description = "Set the Name Of the Object" 


STATUS

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.


MORE INFORMATION

Using the Visual Basic Class Builder Utility Add-In, you have the option of adding "Descriptions" to properties of the ActiveX Server object that is being developed. These descriptions are useful in tools such as the Object Browser, when other programmers are using the ActiveX Servers in their projects.

After the Visual Basic Class Builder Utility builds the class, it is common to modify the function stubs generated to suit the purpose of the class. When descriptions are added to a Let property declared as "Friend" and having a corresponding "Public" Get property, the above error message might occur during compilation.


REFERENCES

Books Online for Microsoft Visual Basic, version 5.0

Additional query words: kbDSupport kbdss

Keywords : kbGrpVB
Version :
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.