Click here to Skip to main content
15,889,595 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfloat to string Pin
Waldermort26-Aug-06 3:46
Waldermort26-Aug-06 3:46 
AnswerRe: float to string Pin
Mike Dimmick26-Aug-06 9:25
Mike Dimmick26-Aug-06 9:25 
QuestionHooking up Direct3D... but which one ? Pin
seq-26-Aug-06 3:45
seq-26-Aug-06 3:45 
AnswerRe: Hooking up Direct3D... but which one ? Pin
Andy Moore27-Aug-06 10:14
Andy Moore27-Aug-06 10:14 
GeneralRe: Hooking up Direct3D... but which one ? Pin
seq-27-Aug-06 10:49
seq-27-Aug-06 10:49 
QuestionUsing mouse scroll Pin
xkrja26-Aug-06 2:54
xkrja26-Aug-06 2:54 
AnswerRe: Using mouse scroll Pin
Waldermort27-Aug-06 0:34
Waldermort27-Aug-06 0:34 
QuestionNo default constructor Pin
#realJSOP26-Aug-06 1:25
mve#realJSOP26-Aug-06 1:25 
Using VS2005:

So there I am happily coding along, using classes that I wrote 6 years ago. The class in question has the following general content:

class CMyClass
{
public:
	CMyClass(CString sFileName);
	CMyClass();
	virtual ~CMyClass();
	...
};


I didn't feel like dealing with pointers, so I defined this:

class CMyOtherClass
{
	CMyClass m_myClass;
	...
};


The compiler is complaining that there's no default constructor for CMyClass, but there is (the bodies of both constructors are in the CPP file).

What am I missing?


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: No default constructor [modified] Pin
Garth J Lancaster26-Aug-06 1:40
professionalGarth J Lancaster26-Aug-06 1:40 
AnswerRe: No default constructor Pin
Stephen Hewitt26-Aug-06 2:50
Stephen Hewitt26-Aug-06 2:50 
AnswerRe: No default constructor Pin
cmk26-Aug-06 7:14
cmk26-Aug-06 7:14 
Questionproblem on changing the views Pin
radhika2826-Aug-06 0:48
radhika2826-Aug-06 0:48 
AnswerRe: problem on changing the views Pin
radhika2826-Aug-06 2:18
radhika2826-Aug-06 2:18 
Questiondirectory access Pin
George_George25-Aug-06 23:00
George_George25-Aug-06 23:00 
AnswerRe: directory access Pin
eusto26-Aug-06 0:05
eusto26-Aug-06 0:05 
GeneralRe: directory access Pin
George_George27-Aug-06 0:19
George_George27-Aug-06 0:19 
AnswerRe: directory access Pin
Hamid_RT28-Aug-06 7:05
Hamid_RT28-Aug-06 7:05 
GeneralRe: directory access Pin
George_George28-Aug-06 22:34
George_George28-Aug-06 22:34 
QuestionRe: directory access Pin
Hamid_RT29-Aug-06 1:05
Hamid_RT29-Aug-06 1:05 
AnswerRe: directory access Pin
George_George29-Aug-06 1:15
George_George29-Aug-06 1:15 
QuestionDif Between UDp & TCP-IP Pin
ramanand_bulusu25-Aug-06 22:30
ramanand_bulusu25-Aug-06 22:30 
AnswerRe: Dif Between UDp & TCP-IP Pin
Divyang Mithaiwala25-Aug-06 23:52
Divyang Mithaiwala25-Aug-06 23:52 
GeneralRe: Dif Between UDp & TCP-IP [modified] Pin
ramanand_bulusu25-Aug-06 23:58
ramanand_bulusu25-Aug-06 23:58 
GeneralRe: Dif Between UDp & TCP-IP Pin
Divyang Mithaiwala26-Aug-06 0:30
Divyang Mithaiwala26-Aug-06 0:30 
GeneralRe: Dif Between UDp & TCP-IP Pin
Gary R. Wheeler26-Aug-06 12:37
Gary R. Wheeler26-Aug-06 12:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.