hi, im using VC++ 6 and im trying to use _beginthread
heres the code im trying
and HostServer = int HostServer()
_beginthread(HostServer, 0, NULL);
the warning im getting is
and it seems to be making the program work wrong,
warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void *)'
any one got any ideas on this
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.