知道ip地址,程序中如何检测此机子是否开机?谢谢了 如题,最好有代码,再次感谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ping你的目标机器,代码去百度一下,多的是。 用delphi自带的indy控件就可以了unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdRawBase, IdRawClient, IdIcmpClient;type TForm1 = class(TForm) IdIcmpClient1: TIdIcmpClient; Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);beginIdIcmpClient1.Host:='192.168.0.211';IdIcmpClient1.ping;if IdIcmpClient1.ReplyStatus.BytesReceived <= 0 then ShowMessage('对方机未开') else ShowMessage('对方机已开')end;end. table刷新,程序死的问题 最基础的问题,高手进来看 QQ的靠边技术在delhi里是如何实现的 image + scrollbox如何设置,就是使大图有滚动条 美丽的蝴蝶 数据库新手求教,关于选择何种数据库的问题。 请教:坐标轴是在哪儿画的?在Image上,还是在Chart就有? 请教高手门一个问题。。。。。 使用Delphi6时,发现似乎过程closefile无法使用 ADO是否可以实现万能连接? 为什么这个OCX注册后以前好用,现在不好用了? 数据库高手进来看看!!!!
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdRawBase, IdRawClient,
IdIcmpClient;type
TForm1 = class(TForm)
IdIcmpClient1: TIdIcmpClient;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
IdIcmpClient1.Host:='192.168.0.211';
IdIcmpClient1.ping;
if IdIcmpClient1.ReplyStatus.BytesReceived <= 0 then
ShowMessage('对方机未开')
else
ShowMessage('对方机已开')end;end.