Shell32.dll
Blitz3D Forums/Blitz3D Userlibs/Shell32.dll
| ||
What is wrong with the following userlib?.lib "shell32.dll" ShellExecute(hwnd%,Operation$,File$,Parameters$,Directory$,ShowCmd%) I get a "User lib function not found" error when I use it in my program: ShellExecute SystemProperty("appHWND"),"open",Chr$(34)+temp$+Chr$(34),"","",0 |
| ||
Add this at the end of your declaration line: :"ShellExecuteA" |
| ||
Thanks! That was the problem. Now my program works. Note: this is the same function used by the blitz command "ExecFile". The reason I want to have it the way I do is so I can tell the window to be hidden when it runs. "ExecFile" does not give me that option. But that leads to another question: why do all the windows functions have "A" at the end? |
| ||
why do all the windows functions have "A" at the end? There are multiple versions of the API functions, the ones with an 'A' are the ANSI version, while others support Unicode etc. |