Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem caused by interception of API function using method 'code injection' Pin
David Crow19-Aug-10 3:51
David Crow19-Aug-10 3:51 
QuestionProblem with doublebyte chars in Japanese Pin
narayanagvs18-Aug-10 21:13
narayanagvs18-Aug-10 21:13 
AnswerRe: Problem with doublebyte chars in Japanese Pin
norish19-Aug-10 8:03
norish19-Aug-10 8:03 
GeneralRe: Problem with doublebyte chars in Japanese Pin
narayanagvs20-Aug-10 0:35
narayanagvs20-Aug-10 0:35 
QuestionHelp needed in Solving LNK2001 Pin
Hari_1618-Aug-10 21:03
Hari_1618-Aug-10 21:03 
AnswerRe: Help needed in Solving LNK2001 Pin
bleedingfingers18-Aug-10 21:07
bleedingfingers18-Aug-10 21:07 
GeneralRe: Help needed in Solving LNK2001 Pin
Hari_1618-Aug-10 21:19
Hari_1618-Aug-10 21:19 
GeneralRe: Help needed in Solving LNK2001 Pin
Richard MacCutchan18-Aug-10 21:54
mveRichard MacCutchan18-Aug-10 21:54 
GeneralRe: Help needed in Solving LNK2001 Pin
bleedingfingers18-Aug-10 22:07
bleedingfingers18-Aug-10 22:07 
GeneralRe: Help needed in Solving LNK2001 Pin
Richard MacCutchan18-Aug-10 22:19
mveRichard MacCutchan18-Aug-10 22:19 
GeneralRe: Help needed in Solving LNK2001 Pin
bleedingfingers18-Aug-10 22:25
bleedingfingers18-Aug-10 22:25 
AnswerRe: Help needed in Solving LNK2001 Pin
Cedric Moonen18-Aug-10 21:50
Cedric Moonen18-Aug-10 21:50 
AnswerRe: Help needed in Solving LNK2001 Pin
Richard MacCutchan18-Aug-10 21:54
mveRichard MacCutchan18-Aug-10 21:54 
QuestionHow to safely release the memory when I dynamic create the the dialog ? Pin
wangningyu18-Aug-10 20:50
wangningyu18-Aug-10 20:50 
AnswerRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Eugen Podsypalnikov18-Aug-10 21:08
Eugen Podsypalnikov18-Aug-10 21:08 
AnswerRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Niklas L18-Aug-10 22:37
Niklas L18-Aug-10 22:37 
Another point is that there is no point in having a pointer for your dialog if you at any point are worried about memory. You could just use CTestDlg m_testDlg;


Using a pointer as you have has only one advantage. You can use a forward declaration of CTestDlg in your header file to avoid compile time dependencies. This will reduce compilation time if you later make changes to CTestDlg. In practice, this applies to large project only.

Also, the UpdateWindow() call is superfluous.

GeneralRe: How to safely release the memory when I dynamic create the the dialog ? [modified] Pin
Aescleal18-Aug-10 22:44
Aescleal18-Aug-10 22:44 
GeneralRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Niklas L18-Aug-10 23:24
Niklas L18-Aug-10 23:24 
GeneralRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Aescleal19-Aug-10 1:26
Aescleal19-Aug-10 1:26 
AnswerRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Aescleal18-Aug-10 22:39
Aescleal18-Aug-10 22:39 
GeneralRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Rick York19-Aug-10 15:34
mveRick York19-Aug-10 15:34 
AnswerRe: How to safely release the memory when I dynamic create the the dialog ? Pin
Cool_Dev18-Aug-10 23:43
Cool_Dev18-Aug-10 23:43 
QuestionHow to get the total files numbers of a whole computer? Pin
Aric Wang18-Aug-10 16:32
Aric Wang18-Aug-10 16:32 
AnswerRe: How to get the total files numbers of a whole computer? Pin
Niklas L18-Aug-10 19:59
Niklas L18-Aug-10 19:59 
QuestionDeadlocked UI need a little help Pin
Spawn@Melmac18-Aug-10 11:33
Spawn@Melmac18-Aug-10 11:33 

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.