Hi Doug, I found a mistake - the problem was in the files, which I included before the ACE header files (windows.h winsock2.h etc). if they remove the program is working well thanks for your help )) Cyril