Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: C++ related question Pin
Ahsan Askare20-Sep-05 1:03
Ahsan Askare20-Sep-05 1:03 
AnswerRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:01
Bob Stanneveld20-Sep-05 1:01 
AnswerRe: C++ related question Pin
karmendra_js20-Sep-05 1:24
karmendra_js20-Sep-05 1:24 
AnswerRe: C++ related question Pin
Cedric Moonen20-Sep-05 1:54
Cedric Moonen20-Sep-05 1:54 
AnswerRe: C++ related question Pin
Nemanja Trifunovic20-Sep-05 2:40
Nemanja Trifunovic20-Sep-05 2:40 
QuestionProblem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:20
karmendra_js20-Sep-05 0:20 
AnswerRe: Problem Creating object and accessing public member function. Pin
Bob Stanneveld20-Sep-05 0:38
Bob Stanneveld20-Sep-05 0:38 
GeneralRe: Problem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:51
karmendra_js20-Sep-05 0:51 
GeneralRe: Problem Creating object and accessing public member function. Pin
Satishkumar.B20-Sep-05 2:11
Satishkumar.B20-Sep-05 2:11 
Questionthreading in networking Pin
ppp00120-Sep-05 0:05
ppp00120-Sep-05 0:05 
AnswerRe: threading in networking Pin
Bob Stanneveld20-Sep-05 0:41
Bob Stanneveld20-Sep-05 0:41 
AnswerRe: threading in networking Pin
Glenn Inman20-Sep-05 2:29
Glenn Inman20-Sep-05 2:29 
QuestionChanging the BG color of a multiline edit box Pin
Mohammad A Gdeisat19-Sep-05 23:19
Mohammad A Gdeisat19-Sep-05 23:19 
QuestionSeveral pages working for one var, where to save it? Pin
followait19-Sep-05 23:13
followait19-Sep-05 23:13 
AnswerRe: Several pages working for one var, where to save it? Pin
Cedric Moonen19-Sep-05 23:33
Cedric Moonen19-Sep-05 23:33 

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.