Mystisk syntax fejl!
Når jeg builder følgende program i Microsoft eMbedded Visual C++:#if !defined(AFX_PROFILEMEASUREMENT_H__BE7F515F_A3A7_4BA8_B3A1_C3ACEA8801AC__INCLUDED_)
#define AFX_PROFILEMEASUREMENT_H__BE7F515F_A3A7_4BA8_B3A1_C3ACEA8801AC__INCLUDED_
#include "MeasurePoint.h"
#include "Drawing.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CProfileMeasurement
{
private:
TCHAR szTemp[30];
int iNumberOfPoints;
//File Attributes
TCHAR szFilePath[100];
//Header Fields
TCHAR szColumnDef[20];
TCHAR szDate[30];
TCHAR szDateTime[30];
TCHAR szDirection[30];
TCHAR szLine[30];
TCHAR szPosition[20];
TCHAR szRail[10];
TCHAR szTime[15];
TCHAR szType[10];
CMeasurePoint mp[800]; //measure points
public:
CProfileMeasurement();
virtual ~CProfileMeasurement();
bool loadHeader(TCHAR* szFileName); TCHAR* readHeader(int iHeaderField); bool load(TCHAR* szFileName); CMeasurePoint* getMeasurePoint(int iIndex);
int getNumberOfPoints();
void getExtremes(double* pMinX, double* pMaxX, double* pMinY, double* pMaxY);
void draw(CDrawing* dra);
};
#endif // !defined(AFX_PROFILEMEASUREMENT_H__BE7F515F_A3A7_4BA8_B3A1_C3ACEA8801AC__INCLUDED_)
Får jeg følgende fejl:
ProfileMeasurement.h(47) : error C2061: syntax error : identifier 'CDrawing'
Hvilket er på linien med: void draw(CDrawing* dra);
CDrawing findes i projektet og er indkluderet i filen. Er der nogle der kan fortælle mig hvad denne fejl kan skyldes? og hvordan den kan rettes?