https://stackoverflow.com/questions/10154543/opening-webpage-in-default-browser-with-double-quotes-inside-url
ShellExecute launch default Web browser
http://delphiprogrammingdiary.blogspot.com/2014/07/shellexecute-in-delphi.html
https://blog.csdn.net/zisongjia/article/details/105252322
https://stackoverflow.com/questions/2842452/open-default-browser-with-a-post-in-delphi
https://www.cryer.co.uk/brian/delphi/howto_openbrowserurl.htm
ShellExecute(self.WindowHandle,'open','www.cryer.co.uk',nil,nil, SW_SHOWNORMAL);
If the URL is not hard coded but held in a string, then it will need to be explicitly passed as a PChar:
ShellExecute(self.WindowHandle,'open',PChar(url),nil,nil, SW_SHOWNORMAL);
沒有留言:
張貼留言