surender
April 20th, 2004, 06:46 PM
Hi,
I am using plain C and Win32SDK[Visual Studio 6.0].In the GUI i want to give user two options start and Cancel. If they click on start then a seperate thread is created and lengthy operations are performed. When ever they hit on Cancel the thread needs to be terminated.By looking at whether user clicked cancel before executing each statement in my big thread function it is very difficult to know when to terminate the thread. Can you please give me any inputs since i don't have loop logic in my thread.
Thanks
surender
I am using plain C and Win32SDK[Visual Studio 6.0].In the GUI i want to give user two options start and Cancel. If they click on start then a seperate thread is created and lengthy operations are performed. When ever they hit on Cancel the thread needs to be terminated.By looking at whether user clicked cancel before executing each statement in my big thread function it is very difficult to know when to terminate the thread. Can you please give me any inputs since i don't have loop logic in my thread.
Thanks
surender