My error occurs on line 191 and 156. For some reason it is saying it cant find the default constructor when I have supplied the right amount of parameters.

The error it is giving me is "Cannot find default constructor to initialize base class"

code: http://pastebin.com/WLMvBMyy

If anyone could offer any input it would be greatly appreciated :)

Please try to delete code until you are left with the shortest program that demonstrates the problem. For this type of error, we don't need the logic of the program, just the structure.

I managed to get it solved. I was initializing constructors wrong.

What I did:

VField(int row, int column, int length, const char *s = NULL, bool (*v) (char*) = NULL, void (*h)(void *) = NULL) {
			HField(row, column, length, s, h);
			ptrValid = v;
		}

What the proper way to do it was:

VField(int row, int column, int length, const char *s = NULL, bool (*v) (char*) = NULL, void (*h)(void *) = NULL) : HField(row, column, length, s, h) {
			ptrValid = v;
		}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.