Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing values to a win32api
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00058045
Message ID:
00058512
Vues:
52
>>Sorry about the previous message. I was tired yesterday. George Tasker was right: you can concatenate for this structure:
>>
>>lnsa_family = AF_INET
>>lcsa_family = loPointers.NumberToWordString(lnsa_family)
>>lcSockAddr = lcsa_family + lcsa_data
>>
>>Sorry once again for pointing you in the wrong direction! :(
>>
>>Vlad
>>
>
>Vlad,
>
>I really wish that the documentation conventions were consistent in Win32. I know that in the Win32.hlp file, most structures are similar to:
>
>typedef struct _PRINTER_DEFAULTS { // pd
>
> LPTSTR pDatatype;
> LPDEVMODE pDevMode;
> ACCESS_MASK DesiredAccess;
>} PRINTER_DEFAULTS;
>
>Where the "LP" prefix in indicates that something's a pointer. However, with the Winsock.h declarations, you have to rely on finding the pointer symbol. Makes it real easy to make a mistake like this (especially if one's tired).
>
>Just one question: Are you trying for the "Worst Puns" awards at the next DevCon? :-).
>
>George

"Worst puns"? What did I do this time? :) You know... my English...

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform