FIX: ClassWizard Reports Invalid Filename When Importing ClassLast reviewed: September 18, 1997Article ID: Q122259 |
1.00 1.50 1.51 | 1.00 2.00 4.00
WINDOWS | WINDOWS NTkbtool kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSWhen 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. If either path has a drive letter in it, ClassWizard displays a message box with this error message:
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:
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:
C:\DIR1\MYFILE.H and ..\..\..\MYFILE.HBut ClassWizard will accept this:
\DIR1\MYFILE.HAn 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 reference words: 1.00 1.50 1.51 2.00 wizard pathname 4.00 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |