Click here to Skip to main content
15,917,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem Opening Email when using InvokeHelper in C++ Pin
Roger Broomfield9-May-11 1:37
Roger Broomfield9-May-11 1:37 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729929-May-11 2:04
Member 29729929-May-11 2:04 
GeneralRe: Problem Opening Email when using InvokeHelper in C++ Pin
Member 29729929-May-11 2:25
Member 29729929-May-11 2:25 
QuestionWant logic or code for this in c Pin
KIDYA6-May-11 4:08
KIDYA6-May-11 4:08 
AnswerRe: Want logic or code for this in c Pin
CodyDaemon6-May-11 4:18
CodyDaemon6-May-11 4:18 
GeneralRe: Want logic or code for this in c Pin
KIDYA6-May-11 4:30
KIDYA6-May-11 4:30 
AnswerRe: Want logic or code for this in c Pin
Luc Pattyn6-May-11 4:30
sitebuilderLuc Pattyn6-May-11 4:30 
GeneralRe: Want logic or code for this in c Pin
CPallini6-May-11 10:17
mveCPallini6-May-11 10:17 
GeneralRe: Want logic or code for this in c Pin
Luc Pattyn6-May-11 15:30
sitebuilderLuc Pattyn6-May-11 15:30 
QuestionEncrypting the existing file and folder Pin
sarfaraznawaz6-May-11 1:22
sarfaraznawaz6-May-11 1:22 
AnswerRe: Encrypting the existing file and folder Pin
ShilpiP6-May-11 1:42
ShilpiP6-May-11 1:42 
AnswerRe: Encrypting the existing file and folder Pin
Richard MacCutchan6-May-11 3:05
mveRichard MacCutchan6-May-11 3:05 
GeneralRe: Encrypting the existing file and folder Pin
sarfaraznawaz11-May-11 22:49
sarfaraznawaz11-May-11 22:49 
GeneralRe: Encrypting the existing file and folder Pin
Richard MacCutchan11-May-11 23:22
mveRichard MacCutchan11-May-11 23:22 
Questionhow to assign unsigned char in c++? Pin
mathivanaan6-May-11 1:00
mathivanaan6-May-11 1:00 
AnswerRe: how to assign unsigned char in c++? Pin
Chris Losinger6-May-11 1:01
professionalChris Losinger6-May-11 1:01 
QuestionRe: how to assign unsigned char in c++? Pin
Niklas L6-May-11 1:18
Niklas L6-May-11 1:18 
AnswerRe: how to assign unsigned char in c++? Pin
CPallini6-May-11 10:18
mveCPallini6-May-11 10:18 
AnswerRe: how to assign unsigned char in c++? Pin
Stefan_Lang6-May-11 2:21
Stefan_Lang6-May-11 2:21 
AnswerRe: how to assign unsigned char in c++? Pin
Luc Pattyn6-May-11 2:43
sitebuilderLuc Pattyn6-May-11 2:43 
AnswerRe: how to assign unsigned char in c++? Pin
CPallini6-May-11 10:21
mveCPallini6-May-11 10:21 
AnswerRe: how to assign unsigned char in c++? Pin
mike@codeproject8-May-11 5:51
mike@codeproject8-May-11 5:51 
GeneralRe: how to assign unsigned char in c++? Pin
mathivanaan9-May-11 18:48
mathivanaan9-May-11 18:48 
Questionhow to pass values between dialog window in MFC Pin
lamrinraj5-May-11 23:55
lamrinraj5-May-11 23:55 
AnswerRe: how to pass values between dialog window in MFC Pin
Cool_Dev6-May-11 1:07
Cool_Dev6-May-11 1:07 
One way is to set the parent dialog pointer to the child window, after creating it. Use this pointer to call parent dialog's functions to notify or to directly set the values.

// CDataDlg.h

// Forward declaration
class CTestDlg;
class CDataDlg
{
  .......
  public:
      SetParentDlg(CTestDlg* parent)
      {
         m_pTestDlg = parent;
      }
  private:
      CTestDlg* m_pTestDlg;
}

From CTestDlg, after creating child dlg, call SetParentDlg(this) on it.
// CDataDlg.cpp
#include "testdlg.h"
......
// Get data from text box here..
m_pTestDlg->Function(data);


Also, you may use SetParent() and GetParent() functions on CTestDlg, and cast the returned pointer to CTestDlg* and use.

AfxGetApp() returns the CWinApp pointer, and you can cast this to your MFC application class and use.

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.