The basic situation is that I wrote a class myself:
Class Cdib
{。。。。 }
Then in the MFC auto-generated "project name Dlg.cpp" Using Class Cdib, my project name is mfcpictureprocessing, so the class is class Cmfcpictureprocessingdlg, the following is the view class. h file:
Class Cmfcpictureprocessingdlg:public CDialogEx
{
。。。
Cdib *dlgdib;
cpalette* Createbitmappalette (Cdib *pbitmap);
。。。
}
It is then implemented in. CPP specifically:
cpalette* Cmfcpictureprocessingdlg::createbitmappalette (cdib* pbitmap)
{
。。。。
Dlgdib ....
}
The problem arises at this time:
Intellisense:declaration is incompatible with "CPalette *cmfcpictureprocessingdlg::createbitmappalette (< Error-type> *pbitmap) "(declared at line of" e:\visual_studio_workplace\mfcpictureprocessing\ Mfcpictureprocessing\mfcpictureprocessingdlg.h ") Error c2061:syntax error:identifier ' Cdib ' E:\visual_studio_ Workplace\mfcpictureprocessing\mfcpictureprocessing\mfcpictureprocessingdlg.h, wait a lot of nonsense. More than 10 solutions are in the "project name Dlg.h" Add a sentence: Class Cdib, so that when you try to include this class in the class file, and then use it, there will be no problem. Summary: The general class has not yet seen the problem, only in the MFC view class using their own defined classes will appear, whether as parameters of the function, or separate instantiation will have a problem, plus this sentence mandatory declaration there is no problem ~ But this problem I have a day to understand the Reference link:/http bbs.csdn.net/topics/391942352 solved the later only to understand this last
MFC view class Error: Intellisense:declaration is incompatible with ... Solution Solutions