ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Launch Method: Method 2 - ShellExecuteEx

(1/1)

macs:
The two launch methods are either ShellExecute or ShellExecuteEx.  But as I don't understand the difference between these two API functions I'm not sure what the difference is. Can anybody provide an explanation.

I ask because at some point I switched to method 2 (either I was just playing around or it was to solve some issue). The problem is that method 2 doesn't launch RDP (remote desktop configuration files) I get an error "The parameter is incorrect".

If it helps these are RDP files (and not shortcuts to RDP files) in the start menu. They work fine if I use the start menu to launch them.

lanux128:
the difference as explained by mouser here. :)

[for the technically minded, i changed from ShellExecute to ShellExecuteEx, AND i added code to find the document class in the registry before invoking the "open" verb.  i suspect it is this document class lookup that is causing the change in behavior, though i'm not sure why.  the change was done to fix the problem some people were having with some documents not opening at all, and it seems to have solved that problem for them, but now it seems to have caused a strange change in behavior for others].-mouser (June 18, 2008, 10:59 AM)
--- End quote ---

d4ni:
It was disabled by default, however, because it was causing some problems.

Navigation

[0] Message Index

Go to full version