Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: *off topic* Pin
Eytukan20-Sep-05 4:52
Eytukan20-Sep-05 4:52 
GeneralRe: MFC help and tutorials Pin
Trollslayer20-Sep-05 4:59
mentorTrollslayer20-Sep-05 4:59 
GeneralRe: MFC help and tutorials Pin
toxcct20-Sep-05 5:02
toxcct20-Sep-05 5:02 
AnswerRe: MFC help and tutorials Pin
Cedric Moonen20-Sep-05 3:41
Cedric Moonen20-Sep-05 3:41 
AnswerRe: MFC help and tutorials Pin
David Crow20-Sep-05 5:42
David Crow20-Sep-05 5:42 
JokeRe: MFC help and tutorials Pin
Eytukan20-Sep-05 4:50
Eytukan20-Sep-05 4:50 
GeneralRe: MFC help and tutorials Pin
bugDanny20-Sep-05 5:59
bugDanny20-Sep-05 5:59 
AnswerRe: MFC help and tutorials Pin
Steen Krogsgaard22-Sep-05 0:19
Steen Krogsgaard22-Sep-05 0:19 
GeneralRe: MFC help and tutorials Pin
bugDanny22-Sep-05 3:55
bugDanny22-Sep-05 3:55 
QuestionChild control notification Pin
abhi_code20-Sep-05 3:09
abhi_code20-Sep-05 3:09 
AnswerRe: Child control notification Pin
prasad_som20-Sep-05 3:18
prasad_som20-Sep-05 3:18 
GeneralRe: Child control notification Pin
abhi_code20-Sep-05 3:55
abhi_code20-Sep-05 3:55 
AnswerRe: Child control notification Pin
David Crow20-Sep-05 5:57
David Crow20-Sep-05 5:57 
QuestionTo use dll classes Pin
honae20-Sep-05 2:59
honae20-Sep-05 2:59 
GeneralRe: To use dll classes Pin
prasad_som20-Sep-05 3:14
prasad_som20-Sep-05 3:14 
GeneralRe: To use dll classes Pin
honae20-Sep-05 4:02
honae20-Sep-05 4:02 
AnswerRe: To use dll classes Pin
honae20-Sep-05 3:37
honae20-Sep-05 3:37 
AnswerRe: To use dll classes Pin
Alexander M.,20-Sep-05 8:42
Alexander M.,20-Sep-05 8:42 
QuestionA Bug in the land of construction??? Pin
Glenn Inman20-Sep-05 2:22
Glenn Inman20-Sep-05 2:22 
AnswerRe: A Bug in the land of construction??? Pin
prasad_som20-Sep-05 2:42
prasad_som20-Sep-05 2:42 
AnswerRe: A Bug in the land of construction??? Pin
Nemanja Trifunovic20-Sep-05 2:50
Nemanja Trifunovic20-Sep-05 2:50 
QuestionOPOS DRIVER - OCX and DLL Pin
honae20-Sep-05 2:18
honae20-Sep-05 2:18 
QuestionC++ related question Pin
Ahsan Askare20-Sep-05 0:55
Ahsan Askare20-Sep-05 0:55 
Friends there are two simple C++ classes Car and Engine. I am getting the following error in the function Start of class Engine

d:\Car\Car.cpp(19): error C2027: use of undefined type 'Car'

Please tell me why i am getting this error. Code is here:

class Car; // Forward Declaration

class Engine
{
public:

	Engine(Car *pCar)
	{
	  m_pCar = new Car();
	}

	void Start()
	{
	  m_pCar->OnStart();  // ERROR HERE: use of undefined type 'Car'
	}

private:

    Car *m_pCar;
};


class Car
{
  public:

	Car()
	{
	}

	void OnStart()
	{
  	}

};




Ahsan
AnswerRe: C++ related question Pin
toxcct20-Sep-05 1:00
toxcct20-Sep-05 1:00 
GeneralRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:02
Bob Stanneveld20-Sep-05 1:02 

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.