I am trying to create a Socket server which will create a thread for each of its client(I am trying o implement multithreading). This works fine in MFC but when I try to call _beginthreadex function from my Component Class, I am getting an error. It is basically a dll which will implement a socket server. Can anyone help??