CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    6

    Create Thread problem

    Hello, I'm creating a server type program to monitor several client programs with multithread coding. I'm having a difficulty with the CreateThread function. Rather than calling the appropriate function from WinBase.h, it calls a different version of CreateThread that returns a BOOL instead of a Handler, located in afxwin.h. I've tried directly referencing WinBase.h before the function as well as including it in the header. Is this a difficulty with Visual studio or the code? Any help on solving the problem would also be welcome.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    894

    Re: Create Thread problem

    Use ::CreateThread() if you don't need MFC function.

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Create Thread problem

    Have a look at this thread
    Victor Nijegorodov

Tags for this Thread

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