FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Shellexecute
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Tue Mar 20, 2007 09:56 AM

Hi all
I am using fwh with the latest xharbour compiler and I am getting a problem with using shellexecute in that it gpfs every time it tries to use this. Winexec works but I have had problems with winexec on some operating versions.

Thanks
Peter

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:07 AM

Peter,

Please copy here how you are calling ShellExecute() when it GPFs, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:15 AM

ShellExecute(0,0, "CAPSLOCK","on",0,0)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:21 AM

Peter,

Here it is working ok.

Are you using xHarbour from the CVS or the commercial version ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:35 AM

latest commercial version in beta

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:43 AM

Peter

try utting SHELLEXECUTE(WNDMAIN():hWnd,"open",....

It works with xhb commercial and latest beta

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Tue Mar 20, 2007 10:46 AM

Sorry can you post a full syntax using thesample i posted before

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Shellexecute
Posted: Tue Mar 20, 2007 11:08 AM
function Main()

   ShellExecute(0,0, "CAPSLOCK","on",0,0)
   MsgInfo( "done" )
   
return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Tue Mar 20, 2007 11:36 AM

thats what I am using but it still gpfs. Should I be using the latest version of fwh

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Shellexecute
Posted: Fri Mar 23, 2007 03:41 PM
Peterg wrote:thats what I am using but it still gpfs. Should I be using the latest version of fwh


What version of xHarbour Builder do you use?
--
Sincerely,

Patrick Mast,
xHarbour.com Inc.
http://www.xHarbour.com
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Fri Mar 23, 2007 03:45 PM

latest beta

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Shellexecute
Posted: Fri Mar 23, 2007 04:00 PM
Peterg wrote:latest beta


Just tried, and no GPF here. Did you try Antonio's sample?

Please download the sample with exe from "http://www.xHarbour.net/Test_ShellExecute.zip" and let me know if it GPF on your side.
--
Sincerely,

Patrick Mast,
xHarbour.com Inc.
http://www.xHarbour.com
Posts: 62
Joined: Mon Nov 28, 2005 05:36 PM
Shellexecute
Posted: Fri Mar 23, 2007 04:47 PM

Downloaded and it works fine using normal build for xbase.
As soon as I link in the sql.lib then I get a gpf

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Shellexecute
Posted: Sat Mar 24, 2007 08:41 AM
Peterg wrote:Downloaded and it works fine using normal build for xbase.
As soon as I link in the sql.lib then I get a gpf


Aha! Interesting. Will test some more today and keep you posted on this.
--
Sincerely,

Patrick Mast,
xHarbour.com Inc.
http://www.xHarbour.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Shellexecute
Posted: Sun Mar 25, 2007 03:57 PM
Patrick Mast wrote:
Peterg wrote:Downloaded and it works fine using normal build for xbase. As soon as I link in the sql.lib then I get a gpf


Aha! Interesting. Will test some more today and keep you posted on this.


Hum, I can not get it to GPF here. Can you make me a reduced sample that trows the GPF?

--
Sincerely,

Patrick Mast,
xHarbour.com Inc.
http://www.xHarbour.com