我使用外部api获取的名字与实际的不同,不知道怎么回事?谢谢!
------解决方案--------------------
Quote=引用:]
wsstartup启用。然后再。。。
[/Quote]
- C/C++ code
Function integer WSAStartup (uint wVersionRequested, ref str_wsadata lpWSAData) Library "wsock32.dll" alias for "WSAStartup;Ansi" Function uint gethostname (ref String szHost, long dwHostLen) Library "wsock32.dll" alias for "gethostname;Ansi" str_wsadata定义如下:global type str_wsadata from structure unsignedinteger version unsignedinteger highversion character description[257] character systemstatus[129] unsignedinteger maxsockets unsignedinteger maxupddg string vendorinfo end type