ShellExecuteA Superstrict
BlitzMax Forums/BlitzMax Beginners Area/ShellExecuteA Superstrict| 
 | ||
| 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 | 
| 
 | ||
| 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. | 
| 
 | ||
| Why not just use OpenURL?  Or CreateProcess?  Or that other one?  system_() or _system() or whatever it is. | 
| 
 | ||
| @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. |