I'm not aware of any change such as you mention. A couple of things to try:
First, you're sure that the file association for ".htm" files exists on the test machine and does what you think it should? Can you double click on an .htm file in Windows Explorer and the right thing happens? Second, because the filename you show has spaces in it, you may need to include literal quotes around the filename. Try building the filename like so: FileName := '"' + StartDir + pcPatentInfo.ActivePage.Caption + '.htm' + '"'; // note the surrounding double quotes HTH Stephen Posey [email protected] -----Original Message----- >From: MetaSemantics <[email protected]> >Sent: Jun 10, 2014 11:59 AM >To: 'Moderated List for the Discussion of Delphi Programming > excludingDatabase-related topics' <[email protected]> >Subject: Question re ShellExecute in Win7 and beyond > >Thanks to all those who recalled the InstallShield >Express! I found it and I've been working with it >ever since. But I still have one problem that >puzzles me. I am using the following procedure >when my user clicks a "Help" button on a tabbed >set of folders: > >procedure >TfmGetAllHRSectionsOfAPatentString.buHelpClick(Sen >der: TObject); >var FileName : string; >begin >try > {Visit the web site} > //FileName := >WebURL+'help/'+pcPatentInfo.ActivePage.Caption+'.h >tm'; > FileName := >StartDir+pcPatentInfo.ActivePage.Caption+'.htm'; > ShellExecute( 0,'open', > pChar(FileName), nil, > nil, SW_SHOWNORMAL); >except On E:Exception do Log('buHelpClick : >'+E.Message); >end; >end; > >By setting the debug points and stepping through, >the FileName gets set properly to a web page named >"about.htm" which I put at > >"C:\Program Files (X86)\About.htm" > >But the debugger steps right through it and >nothing happens! Have they made a change in >Windows 7 upgrades that won't allow that >SellExecute function to call the browser anymore? > >-Rich > >Sincerely, >Rich Cooper >EnglishLogicKernel.com >Rich AT EnglishLogicKernel DOT com >9 4 9 \ 5 2 5 - 5 7 1 2 > > >_______________________________________________ >Delphi mailing list >[email protected] >http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
