Problems with shellexecute()

Problems with shellexecute()

Postby Frank Demont » Fri Jun 16, 2006 9:08 am

Hello,

Today , i have problems , when i try to use :

? Shellexecute(GetActiveWindow(),"open",xlsfile) // returns 42 , not a error

The xlsfile is created with ClipWks (for xharbour) and can be launched from windows with clicking on it.


FUNC MAIN(cFile)
IF cFile == nil
cFile := "c:\program Files\Microsoft Works\wksss.exe c:\temp\HulpTxt4.xls"
END
? Winexec(cFile) // Ok , it works !!!!!!!
cFile := "c:\temp\HulpTxt4.xls"
? shellexecute(GetActiveWindow() ,"open" ,cFile)
// doesn't work , shows only shortly the logo , return code 42
? "ok shellexecute"
RETURN

After this shellexecute the xls-file has to be closed with the task manager


So far as i know , till yesterday there were no problems , i don't know what has changed !

Frank
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Re: Problems with shellexecute()

Postby Enrico Maria Giordano » Fri Jun 16, 2006 7:15 pm

Try

Code: Select all  Expand view
? shellexecute( 0, 0,"c:\program Files\Microsoft Works\wksss.exe", "c:\temp\HulpTxt4.xls", 0, 1 )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8600
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests