CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: two thread

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    42

    two thread

    how can i make two thread in the same application

  2. #2
    Join Date
    Dec 2003
    Location
    Omagh
    Posts
    133
    You need to look at AfxBeginThread. This allows you to create a new thread. This can either be a Worker thread (background) or a interface thread (works with the user interface).

  3. #3
    Join Date
    Dec 2003
    Posts
    60
    or _beginthread if you don't want to use any of the Afx functions.

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150
    If you want GUI-threads and you are using MFC, then take a look at the CWinThread class.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    [Moved thread]

  6. #6
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured