关于超级链接的高级应用(10分)

M

mr.zy

Unregistered / Unconfirmed
GUEST, unregistred user!
在程序中实现打开浏览器,打开邮件程序的功能首先要在uses部分加入uses Shellapi;
接着在需要超级链接的地方使用
SellExecute(handle,nil,pchar('mailto:robot@126.com'),nil,nil,sw_shownormal);
其中pchar()中的mailtos是打开邮件程序的,
可以换成http://、ftp://、gopher://、new:、telnet:等多种
问题是: 我想把主题和附件都自动加上应该怎么办呢?
 
UP
SellExecute(handle,nil,pchar('mailto:robot@126.com'),nil,nil,sw_shownormal);
改成
SellExecute(handle,nil,pchar('mailto:robot@126.com'),'主题','C:/abc.txt',sw_shownormal);
这样行吗?我猜的...

 
谢谢,你帮我解决了一个困扰了我几天的问题。
 
你那样改不行,我试过。你的问题我也没办法,抱歉!
 
改成
SellExecute(handle,pchar('主题'),pchar('mailto:robot@126.com'),pchar'附件',pchar('C:/abc.txt'),sw_shownormal);
就OK了
我给自己加分了
 
顶部