Bonjour,
J'essaye d'utiliser la fonction WSAStartup de la dll ws2_32 ou wsock32 (comme pris sur des exemples du net) mais j'ai toujours le message d'erreur "point d'entrée WSAStartup d'une dll introuvable"
Quelqu'un a une idée ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 Public Declare Function WSAStartup Lib "wsock32.dll" (ByVal wVersionRequested As Integer, ByRef lpWSAData As WSADATA) As Long Public Type WSADATA wVersion As Integer wHighVersion As Integer szDescription As String * 256 szSystemStatus As String * 128 iMaxSockets As Integer iMaxUdpDg As Integer lpVendorInfo As Long End Type Sub Macro1() Dim lData As WSADATA ' Initialisation de Winsock If WSAStartup(257, lData) = 0 Then End If End Sub
Partager