| 确定在uses子句中增加DDEMan。 uses windows, ddeman, ...... function Get_URL(Servicio: string): String; var Cliente_DDE: TDDEClientConv; temp:PChar; file://<<----------------这是新的 begin Result := ''; Cliente_DDE:= TDDEClientConv.Create( nil ); with Cliente_DDE do begin SetLink( Servicio,'WWW_GetWindowInfo'); temp := RequestData('0xFFFFFFFF'); Result := StrPas(temp); StrDispose(temp); file://避免内存漏洞 CloseLink; end; Cliente_DDE.Free; end; procedure TForm1.Button1Click(Sender); begin showmessage(Get_URL('Netscape')); or showmessage(Get_URL('IExplore')); end; |
从当前的浏览器取得当前URL
最新推荐文章于 2023-06-09 16:52:27 发布
博客涉及浏览器、URL等信息技术相关内容,虽未给出具体内容,但从标签推测与浏览器处理URL、文件及函数操作有关,可能还涉及在Windows系统下的应用。
1080

被折叠的 条评论
为什么被折叠?



