Who is Participating?

Can you show the CTextSignLine in its entirety please? don't assume that code you don't think isn't important isn't. For example, does that class have any constant or reference members? If so is the default constructor correctly initialising them? You may get this error if that isn't the case. What about CObject, does that have a default constructor too?

Thanks Evilrix. I concur with your comment... at this point were trying to port some very old visual studio code to Visual Studio 2008.

I found the problem. I had a forward declaration in the header but no corresponding header (TextSignLine.h) in the cpp (TextSign.cpp). I was expecting to see an "unknown variable" but this wasn't going to happen because of the forward declaration.

You basically need a default constructor that gets as parameters the number of lines.
Something like:
CTextSignLine:: CTextSignLine( int numberOfLines )
{// set numberOfLines to your class attribute and then call your default
// constructor without parameters or do what ever you need to initialize your object
}

jkr
>> You are aware that 'default constructor' and 'parameter' are mutually exclusive? ;o)

As I understand it the default constructor has no parameters. But this old dog could very be missing something important. What do you have?

As the code sits there wasn't anything wrong with the constructor. The forward declaration of CTextSignLine meant that the class instantiating it knew what it was but now how to 'Construct' it, ergo 'No appropriate constructor could be found. Once I add the header for CTextSignLine to the cpp that was doing the constructing it was able to find an appropriate constructor. Evil did I nail that.

I've been doing this for some time and it still amazes me what I have yet to learn. Thanks guys for all the support. The turn around on this was great.
Gregg

Strictly speaking a default constructor is one that doesn't require arguments but it can have parameters as long as there are default values that mean the arguments are optional.

Both of these are default constructors and a class would only be able to have one of the other.

myclass(){}

myclass(bool b = false){}

>> Evil did I nail that.

As I said before, there can be a number of reasons for this error and they are not all obvious without being able to see all the code. The lack of a constructor definition for a class that has been forward declared being one possible case.

Since I've given you a good explanation as to what was generating this error I'm not sure I see why you would close it with only your own post as the solution. A more appropriate way to close this would be a split and possibly a B grade since my advice assisted you in resolving the issue rather than actually resolving it for you.

See the following link or the grading guidelines and how they should be applied.