threads example

This is a discussion on threads example within the Windows Programming forums, part of the Platform Specific Boards category; I've been reading on threads and processes from books and msdn, but all I've found are more questions. Can someone ...

  1. #1
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Question threads example

    I've been reading on threads and processes from books and msdn, but all I've found are more questions.
    Can someone please give me an example using threads, for me to learn from.

    I could really use an example like that: The win app is running, and when a button is pushed an endless loop is called, without stopping the main loop of the app.



    Thank you very much.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,701
    If you haven't read this... Multithreading for Rookies

    Here's a C++ example: Simple thread object model (my first post)

    Otherwise, search the forums and Google using "CreateThread" and/or "*beginthread*".

    gg

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Check out MSDN.

    http://msdn.microsoft.com/library/de...ing_topics.asp

    Check out my website for more software development links.

    http://www.dslextreme.com/users/kuphryn/links.html

    Kuphryn

  4. #4
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Exclamation

    what is that:
    Note Win32s does not support multithreading. Calls to the Win32 APIs and C run-time library functions mentioned in this article family will return an error
    I found it at the msdn: http://msdn.microsoft.com/library/de...ing_topics.asp
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  5. #5
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Win32s was the 32 bit extension to the Windows 3.1 family and formed the basis of the Win32 API implemented by Windows 9x and NTx.

    Windows 3.1 did not support pre-emptive multithreading.

    You can safely ignore that note.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-17-2008, 12:28 PM
  2. Yet another n00b in pthreads ...
    By dimis in forum C++ Programming
    Replies: 14
    Last Post: 04-07-2008, 01:43 AM
  3. Classes and Threads
    By Halloko in forum Windows Programming
    Replies: 9
    Last Post: 10-23-2005, 06:27 AM
  4. problem with win32 threads
    By pdmarshall in forum C++ Programming
    Replies: 6
    Last Post: 07-29-2004, 03:39 PM
  5. Block and wake up certain threads
    By Spark in forum C Programming
    Replies: 9
    Last Post: 06-01-2002, 04:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21