Rebuilding the .CLW File
Lance Lovette -- lovette@iftech.com
Thursday, February 08, 1996
When I rebuild the ClassWizard .CLW file it gives me the following message:
'Cannot find the implementation file for class X'
It does this for five of my classes (four of which are in the same file).
I've looked at the files and they have the same AFX comment flags as other
files. All five are derived from CRecordset. I don't need the ClassWizard to
use them so I don't worry about it. I just want to find out what these files
are missing. (Yes, the implementation files are in the Project list).
Thanks,
Lance Lovette
lovette@iftech.com
+-----------------------------------------------------------------------------+
| Interface Technologies, Inc.
| Software Design & Programmer Training
|
| For a collection of free tutorials covering a variety of programming and
| computer-related topics such as Visual C++, MFC, and Windows NT check out
| the ITI On-line Training Center at http://www.iftech.com.
+-----------------------------------------------------------------------------+
Mike Blaszczak -- mikeblas@interserv.com
Saturday, February 10, 1996
[Mini-digest: 2 responses]
On Thu, 8 Feb 1996, Lance Lovette wrote:
>When I rebuild the ClassWizard .CLW file it gives me the following message:
>
> 'Cannot find the implementation file for class X'
ClassWizard will certainly say this if you've changed the spelling of the
class.
>It does this for five of my classes (four of which are in the same file).
>I've looked at the files and they have the same AFX comment flags as other
>files. All five are derived from CRecordset. I don't need the ClassWizard
>to use them so I don't worry about it. I just want to find out what these
>files are missing. (Yes, the implementation files are in the Project list).
I seem to remember that, if ClassWizard thinks the files are implemented in
some other file, then it won't go looking in every file--it will try the file
it knows and bail out if that file isn't there or if the class isn't in that
file.
This might have changed with the introduction of the ClassView brower,
though.
A sure way to get this working would be to remove the classes (via
ClassWizard) and then add them as "imported" classes. You should make a
backup of your whole project first.
.B ekiM
--
TCHAR szDisc[] = _T("These words are my own; I do not speak for Microsoft.");
-----From: "Phillip R. Shaw"
Every time I have run into this I found the problem was one of the AFX_XXX comment flags had the wrong base class.
Erik Funkenbusch -- chucks@skypoint.com
Monday, February 12, 1996
mikeblas@interserv.com wrote:
> I seem to remember that, if ClassWizard thinks the files are implemented in
> some other file, then it won't go looking in every file--it will try the file
> it knows and bail out if that file isn't there or if the class isn't in that
> file.
Actually this is an annoying problem i've found, If you put your .h files and
.cpp files in seperate directories, class wizard won't see them if you try to add
a class from an existing file, even if that directory is in the INCLUDE path
For instance, we have several AFXDLL's that share common header files, each is a
seperate project of course, so we have a common include directory, but this
also means that class wizard editing is out...
rquist@BIX.com
Monday, February 12, 1996
>When I rebuild the ClassWizard .CLW file it gives me the following message:
>
> 'Cannot find the implementation file for class X'
>
>It does this for five of my classes (four of which are in the same file).
>I've looked at the files and they have the same AFX comment flags as other
>files. All five are derived from CRecordset. I don't need the ClassWizard
>to
>use them so I don't worry about it. I just want to find out what these
>files
>are missing. (Yes, the implementation files are in the Project list).
>
I've seen something like this before and it seems to have been corrected by
placing each of the class definitions and implementations in their own file
(ie. create separate files for each class...). I can't promise that this
will work, but it seemed to do the trick for me...
Rich
(rquist@bix.com)
| Вернуться в корень Архива
|