Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a single document based MFC program , when I used XXXXDoc object in custom class it report error, even there is #include "XXXXDoc.h" statment

#include "MultiFileDoc.h"

class ExtractFeature
{
public:
    void SaveFeature(Serializer * _Serializer,CMultiFileDoc * pdoc );
     ..............

    

     ..................


Error reported as below
c:\documents and settings\alim\desptop\treatmultisamplefile\extractfeature.h(26) : error C2061: syntax error : identifier 'CMultiFileDoc'
MultiFileView.cpp



how can I fix that problem?
Posted
Updated 6-Sep-10 3:16am
v2
Comments
Richard MacCutchan 6-Sep-10 9:15am    
What is the class definition of CMultiFileDoc ?
Alimjan Yasin 7-Sep-10 4:04am    
CMultiFileDoc is automatically created document class, I just added few function to it.
ExtractFeature is custom class , it works well in another application I writed. but when I add ExtractFeature.H and ExtractFeature.CPP to current application , it reports erroe just I said before.

1 solution

Check this

Compiler Error C2061[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900