DOCUMENT:Q185993 21-MAY-1998 [vbwin] TITLE :BUG: Public Friend Properties Break Binary Compatibility PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:kbnokeyword ====================================================================== --------------------------------------------------------------------- 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: in the 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 vb6test ====================================================================== Keywords : kbnokeyword Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.