Shellexecute

Shellexecute

Postby Peterg » Tue Mar 20, 2007 9: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
Peterg
 
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK

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

Postby Peterg » Tue Mar 20, 2007 10:15 am

ShellExecute(0,0, "CAPSLOCK","on",0,0)
Peterg
 
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK

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

Postby Peterg » Tue Mar 20, 2007 10:35 am

latest commercial version in beta
Peterg
 
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Peterg » Tue Mar 20, 2007 10:46 am

Sorry can you post a full syntax using thesample i posted before
Peterg
 
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK

Postby Antonio Linares » Tue Mar 20, 2007 11:08 am

Code: Select all  Expand view
function Main()

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Patrick Mast » Fri Mar 23, 2007 3: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Peterg » Fri Mar 23, 2007 3:45 pm

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

Postby Patrick Mast » Fri Mar 23, 2007 4: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Peterg » Fri Mar 23, 2007 4: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
Peterg
 
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK

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

Postby Patrick Mast » Sun Mar 25, 2007 3: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 77 guests