Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
If you want to have both Car and Engine classes in separate files (previous post gave solution to your problem but you have to put both classes in one file), the easiest solution is to move the code m_pCar->OnStart(); in the cpp file and include Car.h in the top of it:

In the cpp file:
void Engine::Start()<br />
{  m_pCar->OnStart(); }


But I have a little problem with your design (if you really use these classes in your project). It must be the opposite: this is the car that has an engine and not the engine that has a car Unsure | :~

-- modified at 7:56 Tuesday 20th September, 2005

Sorry, and also move the code from your constructor in the cpp file Wink | ;)
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 
GeneralRe: Several pages working for one var, where to save it? Pin
toxcct20-Sep-05 3:23
toxcct20-Sep-05 3:23 
QuestionCompile time info gathering Pin
Rostfrei19-Sep-05 23:06
Rostfrei19-Sep-05 23:06 
QuestionProblem with two views Pin
karmendra_js19-Sep-05 22:53
karmendra_js19-Sep-05 22:53 
AnswerRe: Problem with two views Pin
Calc2019-Sep-05 23:40
Calc2019-Sep-05 23:40 
Questioncdecl or stdcall - foreign dll, no source, headers Pin
Garth J Lancaster19-Sep-05 22:46
professionalGarth J Lancaster19-Sep-05 22:46 
AnswerRe: cdecl or stdcall - foreign dll, no source, headers Pin
Tim Smith20-Sep-05 3:47
Tim Smith20-Sep-05 3:47 

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.