Thank you! Please email me:
WindHawk <jb...@cornell.deletethis.edu> wrote in article
<34ea2dd2...@newsstand.cit.cornell.edu>...
Backward compatibility with old 16-bit code. If you want to be able to
"control" the application, use "ShellExecuteEx" instead.
Chris
----------------------------------------------------------------
Chris Marriott, SkyMap Software, UK (ch...@skymap.com).
Visit our web site at: http://www.skymap.com
Astronomy software written by astronomers, for astronomers.
It returns an hInstance because that's what the 16-bit
ShellExecute returned, and we had to keep it that way to make it
easier for people to convert their 16-bit applications to 32-bit.
However, the only thing you can do with the hInstance that is
returned by ShellExecute is to cast it to an integer and compare
it against the error codes. It is not really an HINSTANCE; it's
just an integer that has been cast to an HINSTANCE for
compatibility reasons.