The thread functions passed via the
start_address
parameters must be static. So define them as
static
in the header file:
static void ReceiveThread(void* data);
static DWORD WINAPI SendThread(LPVOID lpParam);
The error message for C3867 tells you what to do.
The error C2276 is solved by passing the function in the same style as indicated by the C3867 message (
&Cthread::ReceiveThread
).