CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: exitthematrix

Search: Search took 0.05 seconds.

  1. Re: C Windows winapi + multi-threading (HANDLE)_beginthreadex fail

    This is my finished code, I added timeout also but seems to hang connected if no response back, otherwise works:


    #include <windows.h>
    #include <stdio.h>
    #include <string.h>
    #include...
  2. Re: C Windows winapi + multi-threading (HANDLE)_beginthreadex fail

    Thanks!

    I did it like this:


    HANDLE hThreadArray[200];
    char str[MAX];
    char *x[MAX];
    int i = 0;
    while(!feof(infile)) {
  3. Re: C Windows winapi + multi-threading (HANDLE)_beginthreadex fail

    By "that works" I mean using "printf("%s", line_buffer)" that prints out every line out from my text.
  4. Re: C Windows winapi + multi-threading (HANDLE)_beginthreadex fail

    An how should I safely start every thread with different lines read from my file? Because if I just do "printf("%s", line_buffer)" that works.
  5. C Windows winapi + multi-threading (HANDLE)_beginthreadex fail

    This code ruined all my day. Basically I have a list of 50 webservers I administrate, I want to check them if up/alive (isAlive() function), I parse my webservers.txt file with the 50 ips/hostnames...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured