The information in this article applies to:
SYMPTOMSIncompatibility Warnings may appear when you are trying to make a project with binary compatibility even though no subroutine or function declaration has changed. CAUSEIf a function declaration contains an optional parameter with a default value in the declaration that does not use a valid enum, Visual Basic will define it as a short, which conflicts with the compiled version which is a long. RESOLUTIONInstall Visual Studio 97 Service Pack 2 or use a valid enumeration in the Function or Subroutine declaration. 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 Studio
97 Service Pack 2.
Q170365 : INFO: Visual Studio 97 Service Packs - What, Where, and Why For a list of the Visual Basic 5.0 bugs that were fixed in the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base: Q171554 : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2 MORE INFORMATION
This will only affect optional default parameters that do not use valid
enumerations when setting the parameter to a default value.
Steps to Reproduce Behavior
As a workaround, if the declaration above used a valid enumeration such as the following, the error would not occur:
Additional query words: kbDSupport
Keywords : kbVBp500 kbVS97sp2fix kbGrpVB kbvbp500sp2fix |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |