Thread: Windows Messages Queuing Up Whilst Looping

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    12
    Let me point out that if the combat loop has been started and you enter combat again you could have serveral combat loops running, so you need some sort of thread sycronisation. The easiest way to do it for what your doing is this:
    The first thing the combat loop dose is set a global variable to true (something like bInCombat) before your main loop calls beginthread it checks the variable and only enters the combat loop if its not allready running.
    That is just one Option and it depends on your program.
    Last edited by ENF; 12-15-2003 at 10:43 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows Messages help
    By The-Guy in forum C++ Programming
    Replies: 2
    Last Post: 07-07-2002, 07:13 PM
  2. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  3. Information: Exiting Windows
    By Okiesmokie in forum C++ Programming
    Replies: 2
    Last Post: 05-12-2002, 09:42 AM
  4. messages from other windows
    By canine in forum Windows Programming
    Replies: 2
    Last Post: 03-12-2002, 04:19 AM
  5. shutting down windows
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-02-2002, 12:28 PM