Multithread- Urgent Requirement
-
Dear Friends How can we embed a ON_BN_CLICKED function to Multithread?Please write to me and help me ASAP. Thanking you in advance. Regards, Bilar
Hi..this is just idea.. Track event ON_BN_CLICKED then call a treaded function that do all work in thread... otherwise I think it is difficult to get ON_BN_CL... in Thread.. this time I just have this Idea..I'll let u know if any other..Bye ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Hi..this is just idea.. Track event ON_BN_CLICKED then call a treaded function that do all work in thread... otherwise I think it is difficult to get ON_BN_CL... in Thread.. this time I just have this Idea..I'll let u know if any other..Bye ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Dear Friends How can we embed a ON_BN_CLICKED function to Multithread?Please write to me and help me ASAP. Thanking you in advance. Regards, Bilar
The interface thread must receive the message. Then pass it along to your other threads using semaphores/conditions/queues, or whatever you use for intrathread communications. -- Booohoo!
-
Dear Sumit, Thanks for the information but please let me know whether it will work in case of User-Interface Thread. Thanks in advance........ Billar
HI Dear... I'm also in doubt that whether thread work on User Interface or not..that's why I suggest u way that do not use that way... I means.. let it do work as user interface do.. just call thread..when any event happen.. only I can help u... OK! Good Bye.. ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Dear Sumit, Thanks for the information but please let me know whether it will work in case of User-Interface Thread. Thanks in advance........ Billar
The thread must own the button in order to get the results you are after. Since the button is most likely owned by the primary thread, interacting with it in another (secondary) thread is asking for trouble.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen