Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing values to a win32api
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00058045
Message ID:
00058346
Views:
56
>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
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform