Page 1 of 1

API call in Vista and W7

Posted: Wed May 12, 2010 8:49 am
by Janko
Dear all,

in XP I used to open external program (like Acrobat) following call:

DllCall( "SHELL32.DLL" , DLL_STDCALL, ;
"ShellExecuteA", AppDesktop():GetHWND(), "open", cFile, ;
NIL, cDir, SW_NORMAL )
but it does not work in Vista neither in W7.

Can you help
Regards
Janko Lubej

Re: API call in Vista and W7

Posted: Wed May 12, 2010 11:39 pm
by skiman
Hi,

I'm using:
"ShellExecuteA", 0, Chr(0), cFile, Chr(0), Chr(0),3)

And this is working in Vista and Win7.

Re: API call in Vista and W7

Posted: Thu May 13, 2010 7:49 am
by Janko
Chris,

that works!!
Thank you very much.

Best regards
JAnko Lubej