Good Morning SHG
Your code works, but I would like to better understand the code.
Could you explain to me how this line of code works or the meanings of code please:
![]()
RetVal = ShellExecute(0&, "open", PicPath, 0&, 0&, 1)
Good Morning SHG
Your code works, but I would like to better understand the code.
Could you explain to me how this line of code works or the meanings of code please:
![]()
RetVal = ShellExecute(0&, "open", PicPath, 0&, 0&, 1)
Thanks for helping . . .
Matt @ Launchnet
Hello Matt,
I will keep it simple because this is a low level system call. Explaining how all the arguments function and where they come from is too much detail to explain in this post.
The ShellExecute code is an API (Applications Programming Interface) call. The procedure will open the executable program associated with the file's extension. This call uses uses the verb "open" to run the executable program for the file's type. The file, including the path and the file extension, is the third parameter. The last parameter determines the window state when the program is run. Normal size is chosen.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Leith's code, MattGood Morning SHG
Your code works ...![]()
Entia non sunt multiplicanda sine necessitate
Good Morning Leith
I understand RetVal = ShellExecute( ?, "open, PicPath, ?, ?, ?)![]()
RetVal = ShellExecute(0&, "open", PicPath, 0&, 0&, 1)
Is their an easy explaination of the areas with question marks ? In general, what they mean.
If not, forget it, as I understand where you are coming from.
Hello Matt,
Click on this link to see a full explanation of the call.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks