社区
Delphi
帖子详情
I have a problem about function.
willfirm
2001-03-29 09:39:00
谁能告诉我在delphi中调用什么函数能返回计算机名和计算机IP地址,thank you!
hope !!!
...全文
85
4
打赏
收藏
I have a problem about function.
谁能告诉我在delphi中调用什么函数能返回计算机名和计算机IP地址,thank you! hope !!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
rh
2001-03-29
打赏
举报
回复
二楼的GG is right
coldljy
2001-03-29
打赏
举报
回复
//uses winsock
coldljy
2001-03-29
打赏
举报
回复
procedure TForm1.Button1Click(Sender: TObject);
var
p : PHostEnt;
s : array[0..128] of char;
p2 : pchar;
wVersionRequested : WORD;
wsaData : TWSAData;
begin
wVersionRequested := MAKEWORD(1, 1);
WSAStartup(wVersionRequested, wsaData);
GetHostName(@s, 128);
p := GetHostByName(@s);
Memo1.Lines.Add(p^.h_Name);
p2 := iNet_ntoa(PInAddr(p^.h_addr_list^)^);
Memo1.Lines.Add(p2);
WSACleanup;
end;
猛禽
2001-03-29
打赏
举报
回复
不是一个函数,是好几个WINSOCK函数,我以前用过,可惜忘记了,你查一下WINSOCK的帮助吧。DELPHI或MSDN里都有。
如何正确理解和使用ES6 Promise?(We have a
problem
with promises)
Fellow JavaScripters, it's time to admit it: we have a
problem
with promises.No, not with promises themselves. Promises, as defined by the A+ spec, are awesome.The big
problem
, which has revealed itse
Error: Invalid hook call. Hooks can only be called inside of the body of a
function
component.
Error: Invalid hook call. Hooks can only be called inside of the body of a
function
component.This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might ...
Invalid hook call. Hooks can only be called inside of the body of a
function
component.
Erro: Invalid hook call. Hooks can only be called inside of the body of a
function
component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and t...
A
Problem
I Solved Last Night
As we know,the frame of MFC use the patten of observe.When we create a single document application,it create an application class,a frame window class a view window class and a document class.The view
Call to undefined
function
getsqlvaluestring() with Dreamweaver PHP mysql
undefined
function
getsqlvaluestring() Hey Guys, I'm new to the forum and it seems very helpful. I think I have a unique
problem
though. Although this script has been working for a year o
Delphi
5,388
社区成员
262,730
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章