我定义了下面一个自定义变量(Bitmap 是gdi+,不要认为错误)typedef struct tagSectPt
{
Bitmap *Pt;
short Count;
}SectPt;
我用时是这样的:
*.h
short PtCount;
SectPt *SectPt;
void initDrawFullPt(CPoint *linkPoint,int linkCount,SectPt *sectPt,short PTCount);*.cppvoid DrawFullPt::initDrawFullPt(CPoint *linkPoint, int linkCount,SectPt *sectPt,short PTCount)
{
setLinkTrackPoint(linkPoint,linkCount);
SectPt=sectPt;
PtCount=PTCount;}
这样出错误啊,是不是自定义变量不能做为指针来操作啊