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 .netbioserror = .netbios错误%d";
type tmacaddress = packed array[0..5] of byte;
.netbioserror = 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;
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器