The information in this article applies to:
SYMPTOMS
When attempting to import a class into a project using ClassWizard, and
locating the header file and implementation file using the Browse buttons
to select a path to each file, you may get an error when you click the OK
button even though the paths to the files are valid.
When the message box is dismissed, the Import Class dialog has the path highlighted for change even though the file name and path are valid. If either path is a relative path that does not include drive letter, such as ..\..\DIR1\DIR2\MYFILE.H, ClassWizard displays a message box with this error message: ClassWizard will accept a relative path that indicates one level above the current directory, such as ..\DIR1\DIR2\MYFILE.H. RESOLUTIONTo successfully import the class, change the path to the header and implementation files, so they are not relative paths and do not contain a drive letter. For example, ClassWizard will not accept this:
But ClassWizard will accept this:
An alternative solution is to copy the files to the project directory. Note
that in any case, you need to add the class implemenation files to your
project. When you import a class, ClassWizard will not update your project
to include the implementation files for the classes you import.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ 4.1. Additional query words: kbVC400bug 1.00 1.50 1.51 2.00 wizard pathname 4.00 4.10
Keywords : kbwizard kbMFC kbVC kbVC410fix |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |