글
error C3867 in AfxBeginThread
you can't pass the address of a member function to the AfxBeginThread function. The function should be either a static member function or a global function. The difference is that the prototypes are different: with a member function, an implicit parameter is passed to the function (the this pointer, which identifies to which class instance it belongs to).
You'll get another problem then: you won't be able to access non-static member variables. The solution to the problem is to pass the pointer of the instance to the thread function (through the pParam parameter) and cast it back in the thread function.
One more thing: you shouldn't use TerminateThread because it terminates the thread brutally without cleaning anything. You should instead rely on other mechanisms (like using a flag that you set to true when the thread should terminate and check that flag inside your thread function).
*Ref
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/81b28e62-cb7d-40af-a064-62de0039effc/error-c3867function-call-missing-argument-list