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

C / C++ / MFC

 
GeneralRe: while making Unicode Compatible :: error C2065: '_wtof' : undeclared identifier Pin
Krishnatv11-Dec-07 17:10
Krishnatv11-Dec-07 17:10 
GeneralRe: while making Unicode Compatible :: error C2065: '_wtof' : undeclared identifier Pin
CPallini11-Dec-07 21:13
mveCPallini11-Dec-07 21:13 
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 
Well, one way is the following:
- Change Client class constructor to accept a Dialog class reference. Store the passed reference as member of Client class
- Make Dialog class public methods to allow access to relevant class data. (a brutal alternative to this step is declaring Client class friend of Dialog class).

For instance:
// Client
class Client
{
  Dialog & m_dlg;
  public:
  Client( Dialog & dialog):m_dlg(dialog){}
...
}

// Dialog
class Dialog
{
  public:
  setLabelText(LPCTSTR szText)
  {
   ...
  }
...
}


and then, somewhere in your code:
Dialog dlg;
...
Client client(dlg);
...


and, finally, somewhere in Client code:
m_dlg.setLabelText(_T("packet received"));


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.


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 
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 

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.