Bonjour,
J'ai toujours cette erreur avec mon code:
error C2664: 'send' : cannot convert parameter 2 from 'unsigned char [72]' to 'const char *'
	
	1 2 3 4 5 6 7 8
   |  
//#include <winsock2.h>
 
			if (send(sock,bindstr,sizeof(bindstr),0)==SOCKET_ERROR)
			{
				printf("Send failed.Error:%d\n",WSAGetLastError());
				return;
			} | 
 ainsi que error C2664: 'recv' : cannot convert parameter 2 from 'unsigned char [4000]' to 'char *'
	
	i=recv(sock,buf1,1024,MSG_PEEK);
 Je me demande qu'est-qu'il y a d'incohérent entre un char[] et un char* ??
						
					
Partager