API call in Vista and W7

This forum is for eXpress++ general support.
Post Reply
Message
Author
Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

API call in Vista and W7

#1 Post 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

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: API call in Vista and W7

#2 Post by skiman »

Hi,

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

And this is working in Vista and Win7.
Best regards,

Chris.
www.aboservice.be

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: API call in Vista and W7

#3 Post by Janko »

Chris,

that works!!
Thank you very much.

Best regards
JAnko Lubej

Post Reply