Salve a tutti, sono nuovo di questo forum, il mio nick è Black_Li0n e spero di trovarmi bene su questo forum.
grazie in anticipo per le risposte del mio problema![]()
Bene...l'altra sera ho trovato un progetto di un programma, mentre cercavo di capire il codice sorgente ho fatto caso a tre errori durante la compilazione.. infatti il debug avviene grazie al windows form presente nella cartela bin, ora non so se il programmatore di proposito ha lasciato questi 3 errori, e non mi importa più di tanto quello che mi importa è cercare di correggerli,
ve li elenco
Codice:
Errore:codice:client.Send(buffer, wd, Sockets.SocketFlags.None)
Errore 3 Risoluzione dell'overload non riuscita perché nessun 'Send' accessibile può essere chiamato senza una conversione verso un tipo di dati più piccolo:
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'buffers' corrispondente all'argomento viene convertito da 'Matrice a 1 dimensioni di Byte.' a 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))', più piccolo.
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'socketFlags' corrispondente all'argomento viene convertito da 'Long' a 'System.Net.Sockets.SocketFlags', più piccolo.
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'errorCode' corrispondente all'argomento viene convertito da 'System.Net.Sockets.SocketFlags' a 'System.Net.Sockets.SocketError', più piccolo.
'Public Function Send(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Il parametro 'size' corrispondente all'argomento viene convertito da 'Long' a 'Integer', più piccolo. C:\Documents and Settings\Clax\Desktop\Nuova cartella (5)\Remote Desktop Client\ClientClass.vb 79 13 WindowsApplication5
Codice2:
Errore2:codice:Client.Receive(buffer, PacketSize, Sockets.SocketFlags.None)
Errore 20 Risoluzione dell'overload non riuscita perché nessun 'Receive' accessibile può essere chiamato senza una conversione verso un tipo di dati più piccolo:
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'buffers' corrispondente all'argomento viene convertito da 'Matrice a 1 dimensioni di Byte.' a 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))', più piccolo.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'socketFlags' corrispondente all'argomento viene convertito da 'Long' a 'System.Net.Sockets.SocketFlags', più piccolo.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'errorCode' corrispondente all'argomento viene convertito da 'System.Net.Sockets.SocketFlags' a 'System.Net.Sockets.SocketError', più piccolo.
'Public Function Receive(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Il parametro 'size' corrispondente all'argomento viene convertito da 'Long' a 'Integer', più piccolo. C:\Documents and Settings\Clax\Desktop\Nuova cartella (5)\Remote Desktop Client\ServerClass.vb 189 18 WindowsApplication5
Codice3:
Errore3:codice:Client.Receive(buffer, PacketSize, Sockets.SocketFlags.None)
Errore 21 Risoluzione dell'overload non riuscita perché nessun 'Receive' accessibile può essere chiamato senza una conversione verso un tipo di dati più piccolo:
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'buffers' corrispondente all'argomento viene convertito da 'Matrice a 1 dimensioni di Byte.' a 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))', più piccolo.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'socketFlags' corrispondente all'argomento viene convertito da 'Long' a 'System.Net.Sockets.SocketFlags', più piccolo.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Il parametro 'errorCode' corrispondente all'argomento viene convertito da 'System.Net.Sockets.SocketFlags' a 'System.Net.Sockets.SocketError', più piccolo.
'Public Function Receive(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Il parametro 'size' corrispondente all'argomento viene convertito da 'Long' a 'Integer', più piccolo. C:\Documents and Settings\Clax\Desktop\Nuova cartella (5)\Remote Desktop Client\ServerClass.vb 192 22 WindowsApplication5![]()

Rispondi quotando
