Information générale
Catégorie:
Fonctions Windows API
>>How can I pass multiple values to a win32api from Visual FoxPro?
>>
>>Basically I need to fill this structure prior of calling the bind function.
>>
>> struct sockaddr {
>> u_short sa_family;
>> char sa_data[14];
>> };
>>
>> int bind (
>> SOCKET s,
>> const struct sockaddr FAR * addr,
>> int namelen
>> );
>>
>>Thanks in advance for your help.
>
>Simon,
>
>Concatenate the values into a single string, then in the declaration, declare it string passed by reference.
>
>hth,
>
>George
I already tried that and it didn't work.
sa_family = alltrim(STR(AF_INET))
sa_data = "129.110.200.92"
LPaddr = sa_family+chr(0)+ sa_data+chr(0)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement