Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerREPOST Pin
_AnsHUMAN_ 10-Feb-09 19:32
_AnsHUMAN_ 10-Feb-09 19:32 
Answer2nd Repost.. Please Ignore. Pin
SandipG 10-Feb-09 19:49
SandipG 10-Feb-09 19:49 
General[Message Deleted] Pin
Purish Dwivedi10-Feb-09 21:54
Purish Dwivedi10-Feb-09 21:54 
RantPlease don't be rude Pin
CPallini10-Feb-09 22:26
mveCPallini10-Feb-09 22:26 
General[Message Deleted] Pin
Purish Dwivedi10-Feb-09 22:58
Purish Dwivedi10-Feb-09 22:58 
GeneralRe: Please don't be rude Pin
CPallini10-Feb-09 23:05
mveCPallini10-Feb-09 23:05 
Questioncreating app buttons Pin
uzziah010-Feb-09 16:09
uzziah010-Feb-09 16:09 
Questiondisable end program notification in console application Pin
Arif Liminto10-Feb-09 14:53
professionalArif Liminto10-Feb-09 14:53 
Hi, I am still a newbie in MFC

I 've got a problem with my console application program

I use one thread in there , which is I use CWinThread
and it terminates when time is equal to timeout
but I need to handle if the user want to terminate immediately in the console application

so the way I did is

I create this function

BOOL WINAPI ConsoleHandler(DWORD CEVENT)
{
	switch(CEVENT)
	{
		case CTRL_CLOSE_EVENT://if user shutdown immediatelly
		         myClass.CleanUpThread();
			
		break;
	}
	return TRUE;
}


so when the user want to immediatelly, it will go to that function and clean up the thread
however, everytime, I test and debug, I always windows ballon said that "windows cannot end this program, it may need more time to complete an operation"

How to disable that ballon? so i dont want user to see that one, and the program will wait until the thread is cleared.

Thanks so much,
AnswerRe: disable end program notification in console application Pin
Eytukan10-Feb-09 16:18
Eytukan10-Feb-09 16:18 
GeneralRe: disable end program notification in console application Pin
Arif Liminto10-Feb-09 16:27
professionalArif Liminto10-Feb-09 16:27 
GeneralRe: disable end program notification in console application Pin
Eytukan10-Feb-09 16:30
Eytukan10-Feb-09 16:30 
GeneralRe: disable end program notification in console application Pin
Arif Liminto10-Feb-09 17:50
professionalArif Liminto10-Feb-09 17:50 
Questionreturn in catch block Pin
clawton10-Feb-09 11:06
clawton10-Feb-09 11:06 
AnswerRe: return in catch block Pin
Stuart Dootson10-Feb-09 11:26
professionalStuart Dootson10-Feb-09 11:26 
GeneralRe: return in catch block Pin
clawton10-Feb-09 11:32
clawton10-Feb-09 11:32 
GeneralRe: return in catch block Pin
Stuart Dootson10-Feb-09 12:10
professionalStuart Dootson10-Feb-09 12:10 
GeneralRe: return in catch block Pin
Stuart Dootson10-Feb-09 12:10
professionalStuart Dootson10-Feb-09 12:10 
GeneralRe: return in catch block Pin
Luc Pattyn10-Feb-09 15:04
sitebuilderLuc Pattyn10-Feb-09 15:04 
AnswerRe: return in catch block Pin
Eytukan10-Feb-09 16:19
Eytukan10-Feb-09 16:19 
AnswerRe: return in catch block Pin
ehaerim21-Nov-11 14:15
ehaerim21-Nov-11 14:15 
GeneralRe: return in catch block Pin
clawton21-Nov-11 17:45
clawton21-Nov-11 17:45 
QuestionResolve the IP from a MAC (ARP) Pin
thelonesquirrely10-Feb-09 10:40
thelonesquirrely10-Feb-09 10:40 
AnswerRe: Resolve the IP from a MAC (ARP) Pin
led mike10-Feb-09 11:01
led mike10-Feb-09 11:01 
GeneralRe: Resolve the IP from a MAC (ARP) Pin
thelonesquirrely10-Feb-09 11:11
thelonesquirrely10-Feb-09 11:11 
GeneralRe: Resolve the IP from a MAC (ARP) Pin
led mike10-Feb-09 11:45
led mike10-Feb-09 11:45 

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.