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

C / C++ / MFC

 
GeneralRe: while making Unicode Compatible :: error C2065: '_wtof' : undeclared identifier Pin
Krishnatv11-Dec-07 16:49
Krishnatv11-Dec-07 16:49 
QuestionHow to choose all the files in CFileDialog Pin
santhoshv8410-Dec-07 22:57
santhoshv8410-Dec-07 22:57 
AnswerRe: How to choose all the files in CFileDialog Pin
Nelek10-Dec-07 23:47
protectorNelek10-Dec-07 23:47 
AnswerRe: How to choose all the files in CFileDialog Pin
CPallini10-Dec-07 23:59
mveCPallini10-Dec-07 23:59 
GeneralOOP is driving me crazy! Pin
Lord Kixdemp10-Dec-07 22:57
Lord Kixdemp10-Dec-07 22:57 
GeneralRe: OOP is driving me crazy! Pin
CPallini10-Dec-07 23:21
mveCPallini10-Dec-07 23:21 
GeneralRe: OOP is driving me crazy! Pin
Lord Kixdemp11-Dec-07 0:02
Lord Kixdemp11-Dec-07 0:02 
AnswerRe: OOP is driving me crazy! Pin
Matthew Faithfull11-Dec-07 0:17
Matthew Faithfull11-Dec-07 0:17 
You can do stuff like this...

<br />
//-----------------------------<br />
//Dialog.h<br />
//forward declaration<br />
class CClient;<br />
/*Dialog can decalre pointers to CClient only and no code that uses them in the header file*/<br />
class CDialog<br />
{<br />
public:<br />
  CDialog(CClient* pClient);<br />
private:<br />
  CClient* m_pClient;<br />
};<br />



<br />
//-----------------------------<br />
//Client.h<br />
#include "Dialog.h"<br />
class CClient<br />
{<br />
  //Client can use anything from Dialog<br />
<br />
  CClient(CDialog& aDialog) : m_Dialog(aDialog)<br />
  {<br />
  }<br />
private:<br />
  CDialog& m_Dialog<br />
};<br />



<br />
//-----------------------------<br />
//Dialog.cpp<br />
#include "Client.h"//This inclues Dialog.h as well<br />
//Now you can write Dialog code that does stuff with Clients :-)<br />
CDialog::CDialog(CClient* pClient)<br />
{<br />
  m_pClient = pClient;<br />
}<br />


Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: OOP is driving me crazy! Pin
led mike11-Dec-07 6:42
led mike11-Dec-07 6:42 
GeneralRe: OOP is driving me crazy! Pin
Matthew Faithfull11-Dec-07 6:52
Matthew Faithfull11-Dec-07 6:52 
GeneralRe: OOP is driving me crazy! Pin
led mike11-Dec-07 7:04
led mike11-Dec-07 7:04 
GeneralRe: OOP is driving me crazy! Pin
Matthew Faithfull11-Dec-07 7:13
Matthew Faithfull11-Dec-07 7:13 
GeneralRe: OOP is driving me crazy! Pin
led mike11-Dec-07 7:53
led mike11-Dec-07 7:53 
GeneralRe: OOP is driving me crazy! Pin
Matthew Faithfull11-Dec-07 8:03
Matthew Faithfull11-Dec-07 8:03 
GeneralRe: OOP is driving me crazy! Pin
CPallini11-Dec-07 7:19
mveCPallini11-Dec-07 7:19 
GeneralRe: OOP is driving me crazy! Pin
led mike11-Dec-07 7:59
led mike11-Dec-07 7:59 
GeneralRe: OOP is driving me crazy! Pin
CPallini11-Dec-07 21:42
mveCPallini11-Dec-07 21:42 
GeneralRe: OOP is driving me crazy! Pin
led mike12-Dec-07 5:16
led mike12-Dec-07 5:16 
GeneralRe: OOP is driving me crazy! Pin
CPallini12-Dec-07 5:25
mveCPallini12-Dec-07 5:25 
GeneralRe: OOP is driving me crazy! Pin
CPallini11-Dec-07 0:33
mveCPallini11-Dec-07 0:33 
GeneralRe: OOP is driving me crazy! Pin
led mike11-Dec-07 4:58
led mike11-Dec-07 4:58 
GeneralRe: OOP is driving me crazy! [modified] Pin
CPallini11-Dec-07 5:05
mveCPallini11-Dec-07 5:05 
GeneralRe: OOP is driving me crazy! Pin
Nelek10-Dec-07 23:45
protectorNelek10-Dec-07 23:45 
GeneralRe: OOP is driving me crazy! Pin
Matthew Faithfull11-Dec-07 0:03
Matthew Faithfull11-Dec-07 0:03 
GeneralRe: OOP is driving me crazy! Pin
Lord Kixdemp11-Dec-07 0:15
Lord Kixdemp11-Dec-07 0:15 

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.