Hello Friends,
I am working in windows.In my gui am calling a function say do_something(); which is implemented in the outer class. Now sometimes its implementation takes too much time so i want the user to stop that outer execution, i mean i want the program execution back to my gui so that user can do few other things.

I tried it but its not returning back until the function implementation is not over. Like i tired to click some other buttons in my gui but those slots are implemented after program execution returns back !!

Can anyone please help me out in this? I will be thankful.