Hi all. Srry my english =(

i have a problem with sockets.

Code:

PHP Code:
#include <ClanLib\core.h>
#include <ClanLib\application.h>
#include <ClanLib\network.h>

class app
{
public:
    static 
int main(const std::vector<CL_String> &args)
    {
        
CL_SetupCore score;
        
CL_SetupNetwork snet;

        
CL_ConsoleWindow console("Error Log");

        try
        {
            
CL_SocketName lport("6767");
            
CL_TCPListen l(lport);
        }
        catch(
CL_Exception e)
        {
            
CL_Console::write_line(e.message);
            
CL_Console::wait_for_key();
        }

        return 
0;
    }
};

CL_ClanApplication App(&app::main); 
Console, "Unable to create socket handle".

All examples with this error. I tried:

PHP Code:
#pragma comment(lib, "ws2_32.lib")
#include <winsock2.h>
#include <windows.h>
#include <ClanLib\core.h>
#include <ClanLib\application.h>
#include <ClanLib\network.h> 
result: Unable to create socket handle

PHP Code:
#include <winsock2.h>
#include <windows.h>
#include <ClanLib\core.h>
#include <ClanLib\application.h>
#include <ClanLib\network.h> 
result: Unable to create socket handle

.............

and more...

tried everything connected with the connecting / disconnecting the library ...error. Help me plz