Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQT C1128: number of sections exceeded object file format limit : compile with /bigobj Pin
onur dalkilic11-Aug-13 22:13
onur dalkilic11-Aug-13 22:13 
AnswerRe: QT C1128: number of sections exceeded object file format limit : compile with /bigobj Pin
«_Superman_»11-Aug-13 22:31
professional«_Superman_»11-Aug-13 22:31 
AnswerRe: QT C1128: number of sections exceeded object file format limit : compile with /bigobj Pin
Stephen Hewitt12-Aug-13 16:15
Stephen Hewitt12-Aug-13 16:15 
Questionusing scardAPI how to get DeviceInstanceId Pin
xiliang_pan11-Aug-13 3:40
xiliang_pan11-Aug-13 3:40 
QuestionHow to use an event object for synchronization.? Pin
mbatra319-Aug-13 23:42
mbatra319-Aug-13 23:42 
AnswerRe: How to use an event object for synchronization.? Pin
Richard Andrew x6410-Aug-13 5:39
professionalRichard Andrew x6410-Aug-13 5:39 
AnswerRe: How to use an event object for synchronization.? Pin
pasztorpisti10-Aug-13 10:13
pasztorpisti10-Aug-13 10:13 
GeneralRe: How to use an event object for synchronization.? Pin
mbatra3111-Aug-13 21:18
mbatra3111-Aug-13 21:18 
Hi,

I have implemented using OnTimer function in which I will close the dialog after some specified time.

Now I have one issue.....I am displaying a message box that "operation completed.!" when the process completes.
I have CANCEL button on the dialog box.....
When user clicks the cancel button, I am closing and terminating the process. Now I don't want to display the message box when user has clicked the cancel button on the dialog.

I am doing like this.

C++
CProgressDlg progDlg;
progDlg.SetPurpose(_T("Video, Please Wait........"));
if(progDlg.DoModal() == IDCANCEL)
{	
         // Wait until child processes exit. Don't wait forever.
          WaitForSingleObject(pi.hProcess, 5000);
	// Kill process if it is still running.
	TerminateProcess( pi.hProcess, 0 );
	CloseHandle( pi.hProcess );
	CloseHandle( pi.hThread );
	return FALSE;
}
//// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
return TRUE;


This function is returning BOOL;

Now I want if user has clicked CANCEL button, then It should not display any message.

if I am checking against this function's return value....that if it returns false, simple return; otherwise if true, display a message to the user. Even on clicking the cancel button it displays the message;


Regards,
Mbatra
GeneralRe: How to use an event object for synchronization.? Pin
pasztorpisti12-Aug-13 5:42
pasztorpisti12-Aug-13 5:42 
GeneralRe: How to use an event object for synchronization.? Pin
Erudite_Eric16-Aug-13 1:30
Erudite_Eric16-Aug-13 1:30 
GeneralRe: How to use an event object for synchronization.? Pin
pasztorpisti16-Aug-13 1:53
pasztorpisti16-Aug-13 1:53 
AnswerRe: How to use an event object for synchronization.? Pin
Krishnakumartg12-Aug-13 6:15
Krishnakumartg12-Aug-13 6:15 
AnswerRe: How to use an event object for synchronization.? Pin
Erudite_Eric16-Aug-13 1:32
Erudite_Eric16-Aug-13 1:32 
GeneralRe: How to use an event object for synchronization.? Pin
pasztorpisti16-Aug-13 1:52
pasztorpisti16-Aug-13 1:52 
GeneralRe: How to use an event object for synchronization.? Pin
Erudite_Eric16-Aug-13 23:02
Erudite_Eric16-Aug-13 23:02 
GeneralRe: How to use an event object for synchronization.? Pin
pasztorpisti17-Aug-13 1:31
pasztorpisti17-Aug-13 1:31 
GeneralRe: How to use an event object for synchronization.? Pin
mbatra3126-Dec-13 19:35
mbatra3126-Dec-13 19:35 
GeneralRe: How to use an event object for synchronization.? Pin
mbatra3126-Dec-13 19:34
mbatra3126-Dec-13 19:34 
QuestionCButton and CListCtrl two controls how self drawing Pin
ztwisdom9-Aug-13 16:17
ztwisdom9-Aug-13 16:17 
SuggestionRe: CButton and CListCtrl two controls how self drawing Pin
Richard MacCutchan9-Aug-13 23:28
mveRichard MacCutchan9-Aug-13 23:28 
AnswerRe: CButton and CListCtrl two controls how self drawing Pin
Krishnakumartg12-Aug-13 6:17
Krishnakumartg12-Aug-13 6:17 
QuestionChanging Treeview control apperance Pin
Member 78617636-Aug-13 22:58
Member 78617636-Aug-13 22:58 
AnswerRe: Changing Treeview control apperance Pin
_AnsHUMAN_ 7-Aug-13 2:10
_AnsHUMAN_ 7-Aug-13 2:10 
GeneralRe: Changing Treeview control apperance Pin
Member 78617637-Aug-13 3:38
Member 78617637-Aug-13 3:38 
GeneralRe: Changing Treeview control apperance Pin
Richard MacCutchan7-Aug-13 7:18
mveRichard MacCutchan7-Aug-13 7:18 

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.