Click here to Skip to main content
14,835,369 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 6:29
Memberharold aptroot17-May-16 6:29 
GeneralRe: RPN notation in C Pin
Member 1252915917-May-16 6:57
MemberMember 1252915917-May-16 6:57 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 7:03
Memberharold aptroot17-May-16 7:03 
GeneralRe: RPN notation in C Pin
jeron117-May-16 7:29
Memberjeron117-May-16 7:29 
GeneralRe: RPN notation in C Pin
David Crow17-May-16 8:14
MemberDavid Crow17-May-16 8:14 
AnswerRe: RPN notation in C Pin
Richard MacCutchan17-May-16 20:50
mveRichard MacCutchan17-May-16 20:50 
QuestionPass by pointer not working Pin
Joe Smith IX15-May-16 5:52
MemberJoe Smith IX15-May-16 5:52 
AnswerRe: Pass by pointer not working Pin
Victor Nijegorodov15-May-16 10:58
MemberVictor Nijegorodov15-May-16 10:58 
Joe Smith IX wrote:
I initialized it as NULL and expected it to change when passed to CallDlg. But it stays as NULL before and after the call, therefore creating new modeless CMyDlg everytime it gets called (instead of bringing up the existing one the foreground).

1. I do not see where, how and when you set it to NULL.
2. Did you debug your code to see the "real" values of all the variables?
3. To make debugging easier for yourself you should avoid write the code in the manner
if(pDlg) pDlg->SetForegroundWindow();
but
if(pDlg)
    pDlg->SetForegroundWindow();
4. how and where do you delete the m_pDlg1 pointer?
GeneralRe: Pass by pointer not working Pin
Joe Smith IX17-May-16 8:34
MemberJoe Smith IX17-May-16 8:34 
AnswerRe: Pass by pointer not working [fixed] Pin
CPallini15-May-16 22:08
mveCPallini15-May-16 22:08 
GeneralRe: Pass by pointer not working Pin
Joe Smith IX17-May-16 8:25
MemberJoe Smith IX17-May-16 8:25 
GeneralRe: Pass by pointer not working Pin
CPallini17-May-16 9:58
mveCPallini17-May-16 9:58 
QuestionC string operations Pin
Member 1096409913-May-16 5:47
MemberMember 1096409913-May-16 5:47 
AnswerRe: C string operations Pin
Richard MacCutchan13-May-16 6:10
mveRichard MacCutchan13-May-16 6:10 
GeneralRe: C string operations Pin
Chris Losinger13-May-16 6:37
professionalChris Losinger13-May-16 6:37 
GeneralRe: C string operations Pin
Richard MacCutchan13-May-16 6:43
mveRichard MacCutchan13-May-16 6:43 
GeneralRe: C string operations Pin
Member 1256233616-Jun-16 12:40
MemberMember 1256233616-Jun-16 12:40 
GeneralRe: C string operations Pin
Richard MacCutchan16-Jun-16 22:10
mveRichard MacCutchan16-Jun-16 22:10 
AnswerRe: C string operations Pin
Patrice T14-May-16 3:05
mvePatrice T14-May-16 3:05 
AnswerRe: C string operations Pin
CPallini14-May-16 3:06
mveCPallini14-May-16 3:06 
AnswerRe: C string operations Pin
leon de boer14-May-16 5:58
Memberleon de boer14-May-16 5:58 
QuestionC execl is this a bug ? Pin
Member 1096409913-May-16 5:37
MemberMember 1096409913-May-16 5:37 
GeneralRe: C execl is this a bug ? Pin
Richard MacCutchan13-May-16 6:07
mveRichard MacCutchan13-May-16 6:07 
AnswerRe: C execl is this a bug ? Pin
k505413-May-16 9:56
mvek505413-May-16 9:56 
AnswerRe: C execl is this a bug ? Pin
leon de boer14-May-16 5:44
Memberleon de boer14-May-16 5:44 

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.