-
beginthread problem
hi, im using VC++ 6 and im trying to use _beginthread
heres the code im trying
Code:
_beginthread(HostServer, 0, NULL);
and HostServer = int HostServer()
the warning im getting is
Code:
warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void *)'
and it seems to be making the program work wrong,
any one got any ideas on this
thanks
-
Your function HostServer returns an int, and it shouldnt return anything. Error messages are meant to be read, not ignored, ya know?
-
Don't forget that not only does it NOT return an int, it expects a void* as an argument.