Shellexecute

Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Shellexecute

Post by Peterg »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

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

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

ShellExecute(0,0, "CAPSLOCK","on",0,0)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

Here it is working ok.

Are you using xHarbour from the CVS or the commercial version ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

latest commercial version in beta
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

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
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

Sorry can you post a full syntax using thesample i posted before
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Code: Select all

function Main()

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

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

thats what I am using but it still gpfs. Should I be using the latest version of fwh
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

latest beta
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

Downloaded and it works fine using normal build for xbase.
As soon as I link in the sql.lib then I get a gpf
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
Post Reply