Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multithread- Urgent Requirement

Multithread- Urgent Requirement

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Billar
    wrote on last edited by
    #1

    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

    S J 2 Replies Last reply
    0
    • B Billar

      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

      S Offline
      S Offline
      Sumit Kapoor
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • S Sumit Kapoor

        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

        B Offline
        B Offline
        Billar
        wrote on last edited by
        #3

        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

        S D 2 Replies Last reply
        0
        • B Billar

          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

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          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!

          1 Reply Last reply
          0
          • B Billar

            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

            S Offline
            S Offline
            Sumit Kapoor
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • B Billar

              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

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups