Thread: threads example

  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,981
    If you haven't read this... Multithreading for Rookies

    Here's a C++ example: http://cboard.cprogramming.com/showthread.php?t=46958

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