您现在的位置是: 软件 > 设计在线 > 网页陶吧 > 技术平台 > HTML学习 > 正文


-Win xp中的多种网络
-试验试验试验试验
-用Freehand实现位图矢量化
-网络电话面面观

delphi三十六之网络篇
2001-01-09· ·陈立平··yesky

1 2 3  下一页

  1.在程序中实现用默认的Web浏览器打开URL以及发送电子邮件

uses

shellapi;

….

Procedure TForm1.Label1Click(Sender:Tobject);

begin

 shellexecute(handle,"open","http://www.swissdelphicenter.ch", nil,nil,sw_show);

end;

procedure

 TForm1.Button1Click(Sender: Tobject);

begin

 shellexecute(handle,"open", "mailto:user@host.com", nil, nil,sw_shownormal);

end;

  2.得到网络适配器的MAC地址

//uses Windows, SysUtils, NB30, 以下为类型定义及函数代码

const sNetBiosError = "NetBIOS错误%d";

type TMACAddress = packed array[0..5] of Byte;

ENetBiosError = class( Exception );

TAStat = record Adapt : TAdapterStatus;

NameBuff : array[0..30] of TNameBuffer;

end;

function GetMacAddress( AdapterNum : Integer ) : TMACAddress;

var

 Ncb : TNCB; uRetCode : Char;

 J : Integer; Adapter : TAStat;

begin

 FillChar( NCB, SizeOf(NCB), 0 );

 with NCB do begin

 ncb_command := Char(NCBRESET);

 ncb_lana_num := Char( AdapterNum );

end;

1 2 3  下一页

■ 相关内容
 使用Delphi启动和关闭外部应用程序
 Delphi三十六之硬件篇
 Delphi三十六之数据库篇
 Delphi中MsComm控件的安装使用
 delphi三十六之编辑篇
 Delphi之三十六计之界面篇
 Delphi之三十六计之系统篇
 delphi三十六之磁盘篇
 delphi三十六之加密篇
感谢 访问天极网,如果您觉得该文章涉及版权问题,请看这里!