CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Posts
    73

    Arrow my question about threading spawn

    hi guys:

    i've got a question with it that is if 'CreateThread' differ from 'AfxBeginThread'.oddly enough msdn dont mention this issue if for true what makes a distinction. thx.

    have a nice day

  2. #2
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    1,194

    Re: my question about threading spawn

    AfxBeginThread() will call CreateThread() but does also some MFC specific initializations.
    So if you are using MFC, you should always use AfxBeginThread().
    Please don't forget to rate users who helped you!

  3. #3
    Join Date
    Feb 2002
    Posts
    5,757

    Re: my question about threading spawn

    _beginthreadex() important

    Kuphryn

  4. #4
    Join Date
    Jan 2005
    Posts
    73

    Re: my question about threading spawn

    Quote Originally Posted by kuphryn
    _beginthreadex() important

    Kuphryn
    why is that ?

  5. #5
    Join Date
    Feb 2002
    Posts
    5,757

    Re: my question about threading spawn

    C/C++ library thread-safe, completely

    Kuphryn

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