ShellAPI 调用搜索引擎
生活随笔
收集整理的這篇文章主要介紹了
ShellAPI 调用搜索引擎
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
//調用搜索引擎?
uses ShellAPI;
//google web search
procedure TForm1.Button1Click(Sender: TObject);
var
??SearchStr:PWideChar;
??SearchEngineStr:string;
begin
???SearchEngineStr:='http://search.yahoo.com/search?p=';
???SearchStr:=PWideChar(SearchEngineStr + Edit1.Text);
???ShellExecute(Handle,'open',SearchStr,0,0,SW_SHOWNORMAL)
end;
//其他地址
http://www.google.com/search?q=TARGETSTRING
http://search.yahoo.com/search?p=TARGETSTRING
http://search.msn.com/results.aspx?q=TARGETSTRING
http://a9.com/TARGETSTRING
http://search.ebay.com/search/search.dll?satitle=TARGETSTRING
//問題
如何獲取任何一款搜索引擎的搜索地址
如 baidu的
通過 Wiz 發布
uses ShellAPI;
//google web search
procedure TForm1.Button1Click(Sender: TObject);
var
??SearchStr:PWideChar;
??SearchEngineStr:string;
begin
???SearchEngineStr:='http://search.yahoo.com/search?p=';
???SearchStr:=PWideChar(SearchEngineStr + Edit1.Text);
???ShellExecute(Handle,'open',SearchStr,0,0,SW_SHOWNORMAL)
end;
//其他地址
http://www.google.com/search?q=TARGETSTRING
http://search.yahoo.com/search?p=TARGETSTRING
http://search.msn.com/results.aspx?q=TARGETSTRING
http://a9.com/TARGETSTRING
http://search.ebay.com/search/search.dll?satitle=TARGETSTRING
//問題
如何獲取任何一款搜索引擎的搜索地址
如 baidu的
通過 Wiz 發布
轉載于:https://www.cnblogs.com/xe2011/archive/2012/06/02/2531609.html
總結
以上是生活随笔為你收集整理的ShellAPI 调用搜索引擎的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网黑能办平安信用卡吗?这两种情况办不到
- 下一篇: 交行优逸白金卡怎么发了2张卡?原因竟然是