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

C / C++ / MFC

 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 8:28
ForNow25-Feb-18 8:28 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 21:36
mveRichard MacCutchan25-Feb-18 21:36 
GeneralRe: Strange Debugging results Pin
ForNow26-Feb-18 1:53
ForNow26-Feb-18 1:53 
QuestionWhen an process is loaded Pin
_Flaviu22-Feb-18 23:15
_Flaviu22-Feb-18 23:15 
QuestionRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:18
mveRichard MacCutchan22-Feb-18 23:18 
AnswerRe: When an process is loaded Pin
_Flaviu22-Feb-18 23:35
_Flaviu22-Feb-18 23:35 
GeneralRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:48
mveRichard MacCutchan22-Feb-18 23:48 
QuestionCdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 16:46
ForNow22-Feb-18 16:46 
I have a modeless dialog from which I display to two modal dialog boxes one after the other
I would like to save all the information I get from the two in the modeless dialog

So my plan was when creating the modal dialog box pass the Cwnd pointer using the this pointer

Well the first one seems to work by this I mean make breakpoint
C++
abendialog = new RTMDialog(mylparam,this);
at the creation of the object and then at the contructor

C++
RTMDialog::RTMDialog(LPARAM mylparam, CWnd* pParent)
    : CDialog(IDD_DIALOG9, pParent)


at this pParent has valid pointer

In this dialog I create a second modal dialog


C++
void RTMDialog::Percolate()
{
    CMypercolate DOPREC(this);
	DOPREC.DoModal();
 }


here too the this pointer is valid however when I get to this constructer
pParent is null

CMypercolate::CMypercolate(CWnd* pParent /*=NULL*/)
	: CDialog(IIDD_MYPERCOLATE, pParent)
{

AnswerRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 20:25
leon de boer22-Feb-18 20:25 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 21:13
ForNow22-Feb-18 21:13 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 21:26
leon de boer22-Feb-18 21:26 
QuestionCOM usage issue Pin
Fedrer21-Feb-18 21:23
Fedrer21-Feb-18 21:23 
AnswerRe: COM usage issue Pin
Richard MacCutchan21-Feb-18 21:28
mveRichard MacCutchan21-Feb-18 21:28 
GeneralRe: COM usage issue Pin
Fedrer21-Feb-18 21:35
Fedrer21-Feb-18 21:35 
GeneralRe: COM usage issue Pin
Richard MacCutchan21-Feb-18 21:56
mveRichard MacCutchan21-Feb-18 21:56 
GeneralRe: COM usage issue Pin
Fedrer21-Feb-18 23:51
Fedrer21-Feb-18 23:51 
GeneralRe: COM usage issue Pin
CPallini22-Feb-18 0:30
mveCPallini22-Feb-18 0:30 
QuestionCleaver macro (string concatenation?) or function to optimize size of array by turning it into a struct/linked list? Pin
arnold_w19-Feb-18 22:16
arnold_w19-Feb-18 22:16 
AnswerRe: Cleaver macro (string concatenation?) or function to optimize size of array by turning it into a struct/linked list? Pin
leon de boer20-Feb-18 7:53
leon de boer20-Feb-18 7:53 
QuestionHow to redirect WriteFile func writes to console Pin
Łukasz Gęsieniec18-Feb-18 19:13
Łukasz Gęsieniec18-Feb-18 19:13 
AnswerRe: How to redirect WriteFile func writes to console Pin
leon de boer18-Feb-18 19:59
leon de boer18-Feb-18 19:59 
GeneralRe: How to redirect WriteFile func writes to console Pin
Łukasz Gęsieniec18-Feb-18 20:10
Łukasz Gęsieniec18-Feb-18 20:10 
GeneralRe: How to redirect WriteFile func writes to console Pin
leon de boer18-Feb-18 21:06
leon de boer18-Feb-18 21:06 
GeneralRe: How to redirect WriteFile func writes to console Pin
leon de boer18-Feb-18 22:45
leon de boer18-Feb-18 22:45 
GeneralRe: How to redirect WriteFile func writes to console Pin
Łukasz Gęsieniec19-Feb-18 0:34
Łukasz Gęsieniec19-Feb-18 0:34 

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.