add function AfxSocketInit() at head!