Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Normally I'd agree about using a member rather than a dynamically created object. However in the case of a modeless dialogue box you can have the problem of resetting the members of the dialogue (if the dialogue box is closed and reopened) which can lead to some funky fiddling with manually calling destructors and placement new. As soon as you start thinking about that you might as well just say sod it and recreate the object as you need to use it.

Cheers,

Ash

Edited as I said completely the wrong thing and confused Niklas. Sorry!

modified on Thursday, August 19, 2010 7:26 AM

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 
AnswerRe: Deadlocked UI need a little help Pin
Spawn@Melmac19-Aug-10 10:52
Spawn@Melmac19-Aug-10 10:52 
QuestionLogging Semaphore names Pin
keloth8718-Aug-10 10:18
keloth8718-Aug-10 10:18 
AnswerRe: Logging Semaphore names Pin
Cool_Dev18-Aug-10 20:40
Cool_Dev18-Aug-10 20:40 
Questionvector of template class Pin
forwardsim18-Aug-10 9:23
forwardsim18-Aug-10 9:23 
AnswerRe: vector of template class Pin
Richard MacCutchan18-Aug-10 9:44
mveRichard MacCutchan18-Aug-10 9:44 
GeneralRe: vector of template class Pin
forwardsim18-Aug-10 10:08
forwardsim18-Aug-10 10:08 
AnswerRe: vector of template class Pin
Aescleal18-Aug-10 10:10
Aescleal18-Aug-10 10:10 
GeneralRe: vector of template class Pin
forwardsim18-Aug-10 10:34
forwardsim18-Aug-10 10:34 
GeneralRe: vector of template class Pin
Aescleal18-Aug-10 11:11
Aescleal18-Aug-10 11:11 

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.