Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error returning CStringArray as function result? Pin
Dave_24-Feb-03 9:33
Dave_24-Feb-03 9:33 
AnswerRe: Error returning CStringArray as function result? Pin
Christian Graus24-Feb-03 9:52
protectorChristian Graus24-Feb-03 9:52 
GeneralRe: Error returning CStringArray as function result? Pin
Alvaro Mendez24-Feb-03 10:27
Alvaro Mendez24-Feb-03 10:27 
GeneralRe: Error returning CStringArray as function result? Pin
Christian Graus24-Feb-03 10:29
protectorChristian Graus24-Feb-03 10:29 
GeneralRe: Error returning CStringArray as function result? Pin
Alvaro Mendez24-Feb-03 11:03
Alvaro Mendez24-Feb-03 11:03 
GeneralRe: Error returning CStringArray as function result? Pin
Christian Graus24-Feb-03 11:31
protectorChristian Graus24-Feb-03 11:31 
Generaldeleting a CDialog... Pin
ns24-Feb-03 9:03
ns24-Feb-03 9:03 
GeneralRe: deleting a CDialog... Pin
Alvaro Mendez24-Feb-03 9:15
Alvaro Mendez24-Feb-03 9:15 
Some points:

1. Putting "delete this" in the destructor will not work. If the destructor is being called it's because the object is already being destroyed. So if you try to destroy it again... Dead | X|

2. The proper way to get rid of modeless dialog boxes is with DestroyWindow. Call that inside your OnCancel or OnOK functions. Alternately, you can do a "delete this" instead, which will call DestroyWindow. However, "delete this" will blow up if the dialog box is not created with new every time, so be careful.

3. If the dialog is modeless, the user will be able to create more than one of it. If that's not OK with you, how do you prevent it?

Regards,
Alvaro




The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein
GeneralRe: deleting a CDialog... Pin
ns24-Feb-03 9:22
ns24-Feb-03 9:22 
GeneralRe: deleting a CDialog... Pin
Alvaro Mendez24-Feb-03 10:22
Alvaro Mendez24-Feb-03 10:22 
Generaloay, got it! Quick ques.. Pin
ns25-Feb-03 2:14
ns25-Feb-03 2:14 
GeneralRe: oay, got it! Quick ques.. Pin
Alvaro Mendez25-Feb-03 4:25
Alvaro Mendez25-Feb-03 4:25 
GeneralRe: deleting a CDialog... Pin
Nish Nishant24-Feb-03 9:17
sitebuilderNish Nishant24-Feb-03 9:17 
Generalthanks!! Also need to know... Pin
ns24-Feb-03 9:28
ns24-Feb-03 9:28 
GeneralRe: deleting a CDialog... Pin
valikac24-Feb-03 9:17
valikac24-Feb-03 9:17 
GeneralRe: deleting a CDialog... Pin
User 665824-Feb-03 9:18
User 665824-Feb-03 9:18 
GeneralRe: deleting a CDialog... Pin
AlexO24-Feb-03 9:21
AlexO24-Feb-03 9:21 
GeneralDevice context with diffrent color of pen object Pin
mkashifkkj24-Feb-03 8:42
mkashifkkj24-Feb-03 8:42 
GeneralRe: Device context with diffrent color of pen object Pin
Chris Losinger24-Feb-03 9:46
professionalChris Losinger24-Feb-03 9:46 
QuestionRectangels and directdraw? Pin
anden24-Feb-03 8:21
anden24-Feb-03 8:21 
GeneralEnter to Select button Pin
sstiller24-Feb-03 7:40
sstiller24-Feb-03 7:40 
GeneralRe: Enter to Select button Pin
Alvaro Mendez24-Feb-03 9:05
Alvaro Mendez24-Feb-03 9:05 
GeneralRe: Enter to Select button Pin
valikac24-Feb-03 9:23
valikac24-Feb-03 9:23 
GeneralRe: Enter to Select button Pin
sstiller26-Feb-03 19:09
sstiller26-Feb-03 19:09 
GeneralDelete a security group in VC 7.0 Pin
Member 13661824-Feb-03 5:49
Member 13661824-Feb-03 5:49 

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.