Click here to Skip to main content
15,902,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Execute unix application through VC++ Pin
Rajkumar R9-May-08 5:44
Rajkumar R9-May-08 5:44 
GeneralRe: Execute unix application through VC++ Pin
enhzflep9-May-08 5:41
enhzflep9-May-08 5:41 
GeneralRe: Execute unix application through VC++ Pin
Rajesh R Subramanian9-May-08 5:46
professionalRajesh R Subramanian9-May-08 5:46 
AnswerRe: Execute unix application through VC++ Pin
David Crow9-May-08 15:17
David Crow9-May-08 15:17 
Questiondestroy a dialog in a MFC application Pin
tom groezer9-May-08 2:53
tom groezer9-May-08 2:53 
AnswerRe: destroy a dialog in a MFC application Pin
Rajesh R Subramanian9-May-08 3:02
professionalRajesh R Subramanian9-May-08 3:02 
GeneralRe: destroy a dialog in a MFC application Pin
toxcct9-May-08 3:09
toxcct9-May-08 3:09 
GeneralRe: destroy a dialog in a MFC application Pin
Rajesh R Subramanian9-May-08 3:31
professionalRajesh R Subramanian9-May-08 3:31 
toxcct wrote:
in brief, use IDC_CANCEL instead of 0


You mean IDCANCEL? The framework will use IDCANCEL as the return value if the dialog is closed by clicking the Cancel button or the X button or pressing Alt+F4 (and as a result the OnCancel() being triggered).

Now, I don't think there is any valid reason for me to go out of my way and use IDCANCEL as my return value (which is equal to 2 and not 0), for the very reason that my app was not closed because of a cancel event. I might want to return 0 (which might mean everything went on fine) or, say return 24 (something like - the user chose to pause the process in between and close the dialog).


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

AnswerRe: destroy a dialog in a MFC application Pin
toxcct9-May-08 3:08
toxcct9-May-08 3:08 
AnswerRe: destroy a dialog in a MFC application Pin
tom groezer9-May-08 3:20
tom groezer9-May-08 3:20 
GeneralRe: destroy a dialog in a MFC application Pin
tom groezer9-May-08 3:26
tom groezer9-May-08 3:26 
GeneralRe: destroy a dialog in a MFC application Pin
Mark Salsbery9-May-08 6:15
Mark Salsbery9-May-08 6:15 
Questionfputc or fgetc returning odd results Pin
Klempie9-May-08 2:03
Klempie9-May-08 2:03 
AnswerRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 2:28
Klempie9-May-08 2:28 
GeneralRe: fputc or fgetc returning odd results Pin
Rajkumar R9-May-08 2:37
Rajkumar R9-May-08 2:37 
GeneralRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 2:40
Klempie9-May-08 2:40 
GeneralRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 2:50
Klempie9-May-08 2:50 
AnswerRe: fputc or fgetc returning odd results [modified] Pin
Rajkumar R9-May-08 3:38
Rajkumar R9-May-08 3:38 
GeneralRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 4:15
Klempie9-May-08 4:15 
GeneralRe: fputc or fgetc returning odd results Pin
Rajkumar R9-May-08 4:21
Rajkumar R9-May-08 4:21 
GeneralRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 4:28
Klempie9-May-08 4:28 
AnswerRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 4:48
Klempie9-May-08 4:48 
GeneralRe: fputc or fgetc returning odd results Pin
Rajkumar R9-May-08 5:05
Rajkumar R9-May-08 5:05 
GeneralRe: fputc or fgetc returning odd results Pin
Rajkumar R9-May-08 4:56
Rajkumar R9-May-08 4:56 
AnswerRe: fputc or fgetc returning odd results Pin
Klempie9-May-08 5:06
Klempie9-May-08 5:06 

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.