在Windows下编程没有看帮助的习惯太痛苦了吧。该恶补一下基本知识了拉
呵呵,WORD总不会是OFFICE里的啦,
byte char -8bit
word -16bit 0-2^16-1
int -32bit
WSAStartup
The Windows Sockets WSAStartup function initiates use of Ws2_32.dll by a process.
int WSAStartup(
WORD wVersionRequested,
LPWSADATA lpWSAData
);
Parameters
wVersionRequested
[in] Highest version of Windows Sockets support that the caller can use.
[red]The high-order byte specifies the minor version (revision) number
the low-order byte specifies the major version number.[/red]
lpWSAData
[out] Pointer to the WSADATA data structure that is to receive details
of the Windows Sockets implementation.
在C中MakeWord定义如下:
#define MAKEWORD(a, b) /
((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))
在Delphi中MakeWord定义如下:
function MakeWord(A, B: Byte): Word;
begin
Result := A or B shl 8;
end;