ShellExecuteA Superstrict

BlitzMax Forums/BlitzMax Beginners Area/ShellExecuteA Superstrict

Volker(Posted 2010) [#1]
What are the parameters for ShellExecuteA
using superstrict?
ShellExecuteA(0, "open", "calc.exe", "", "", SW_SHOWNORMAL)
Extern "win32"
Function ShellExecuteA(hwnd, op$z, file$z, params$z, dir$z, showcmd)
End Extern



Gabriel(Posted 2010) [#2]
HWND and ShowCmd should both be ints. The rest are byte ptr's (pointers to c strings, to be precise) and should be fine with the $z convention you're already using.


GfK(Posted 2010) [#3]
Why not just use OpenURL? Or CreateProcess? Or that other one? system_() or _system() or whatever it is.


Volker(Posted 2010) [#4]
@Gabriel
Thanks, that did it.
@Gfk
With OpenUrl() and CreateProcess() I can't pass arguments.
System_ opens a command prompt. I don't want that.