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. message loop + event

message loop + event

Scheduled Pinned Locked Moved C / C++ / MFC
learning
4 Posts 3 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.
  • V Offline
    V Offline
    Vlasta_
    wrote on last edited by
    #1

    Hello, I need to make a message loop that (also) ends when an event is signaled. I could probably do it myself, but I know messing with message ;) loops is a tricky thing. If you could point me to a resource, where someone has already done this and ironed out all the potential bugs, I'll be grateful. V.

    S S V 3 Replies Last reply
    0
    • V Vlasta_

      Hello, I need to make a message loop that (also) ends when an event is signaled. I could probably do it myself, but I know messing with message ;) loops is a tricky thing. If you could point me to a resource, where someone has already done this and ironed out all the potential bugs, I'll be grateful. V.

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      There's example code here[^].

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • V Vlasta_

        Hello, I need to make a message loop that (also) ends when an event is signaled. I could probably do it myself, but I know messing with message ;) loops is a tricky thing. If you could point me to a resource, where someone has already done this and ironed out all the potential bugs, I'll be grateful. V.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        In addition to Stuart's comments, if you're using ATL try the AtlWaitWithMessageLoop [^] function.

        Steve

        1 Reply Last reply
        0
        • V Vlasta_

          Hello, I need to make a message loop that (also) ends when an event is signaled. I could probably do it myself, but I know messing with message ;) loops is a tricky thing. If you could point me to a resource, where someone has already done this and ironed out all the potential bugs, I'll be grateful. V.

          V Offline
          V Offline
          Vlasta_
          wrote on last edited by
          #4

          thanks for the responses, I'll try to put all the pieces together...

          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