The information in this article applies to:
SYMPTOMSWhen compiling code from the code generator and wizards in a Windows Foundation Classes (WFC) application, one of the following errors may occur:
-or-
CAUSEThe following import statements are made by the wizards and designer code generators:
These imports can cause name collisions if your application defines classes
in different packages with the same name as those in the WFC packages.
RESOLUTIONIf you must import a package that has class names that conflict with the above import statements, you must make sure all of your code uses the fully qualified class names. If you define a class in the default package that conflicts with the above import statements, you must also make sure all of your code uses the fully qualified class names. This includes changing code that was generated by the wizards and Form Designer, for example changing "new Point(300,300)" to "new com.ms.wfc.ui.Point(300,300)". STATUSThis behavior is by design. MORE INFORMATIONIn some cases the Form Designer's code generator will generate code that you will need to fully qualify. If the section of code requiring editing is gray (read-only), you must first close the Form Designer window before making your changes to the Java file. Warning: making future changes in the Form Designer might change your code back to non-fully qualified names. Steps to Reproduce Behavior
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Derek Jamison, Microsoft Corporation. Additional query words:
Keywords : kbide kbVJ600 |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |