FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Launching to a Web page
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Launching to a Web page
Posted: Tue Nov 04, 2008 07:14 PM
Hi,

I want to launch a web page using default browser. I use the ShellExecute function like below.

ShellExecute( ownd:hwnd, 'Open', 'http://www.google.com' )


But It does not work. Any Idea?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Launching to a Web page
Posted: Tue Nov 04, 2008 07:26 PM
Try

SHELLEXECUTE( 0, 0, "'http://www.google.com", 0, 0, 1 )


EMG
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 04:08 PM
Hi Enrico,

Your suggestion does not work also.

I have compiled the testmnu2.prg with changing menu 1.1 and menu 1.2.

http://rapidshare.com/files/160911694/TEST.rar


I have tested exe file in Vista Sp1 and XP Sp3. Both does not work.

Does this example work in your computer?

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 04:31 PM

Yes, I used it many times.

EMG

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 05:22 PM

I mean does my testmn2.exe work?

There may be a problem with my build.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 05:57 PM

Your EXE doesn't work here either but your PRG works fine if compiled here.

EMG

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 07:08 PM

It is the problem.

I have just build using xHarbour Builders xbuild testmnu2.prg.

I don't know how to do? I back to fwh from 8.10 to 8.03. There is no change.
I back to xbuilder from Sep2008-93 to June2008-63 and there is no change.

Any suggestion?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Launching to a Web page
Posted: Wed Nov 05, 2008 08:43 PM

Sorry, I don't use xBuilder.

EMG

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Launching to a Web page
Posted: Thu Nov 06, 2008 08:06 AM

Thanks Enrico,

I want to try to another builds. When I look at the ftp of FWH, There are Harbour and XHarbour. What is the difference?

Enrico, Which one you use. Harbour/XHarbour, Borland/Microsoft?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Launching to a Web page
Posted: Thu Nov 06, 2008 08:25 AM

I'm using both Harbour and xHarbour with BCC.

EMG

Continue the discussion