Have the following abstract class, not sure why I am getting an error on the constructor
Code:
#ifndef __SCRIO_H
#define __SCRIO_H
class IOScreen;
class IOField
{
private:
int row,
col;
protected:
void *data;
IOScreen *owner;
bool Ok;
void (*help)(IOScreen *scrPtr);
bool (*isValid)(void *data, IOScreen *scrPtr);
int Row();
int Col();
public:
IOField(int row, int col,
void (*help)(IOScreen *) = NULL,
bool (*isValid)(void *, IOScreen *) = NULL);
virtual ~IOField();
virtual void display()=0;
virtual int edit()=0;
virtual void *getData();
bool failed();
virtual void clear();
IOScreen *getOwner;
void setOwner(IOScreen *owner);
};
#endif
Code:
error C2065: 'NULL' : undeclared identifier