Open Files on Startup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have noticed that in most proffesional applications, they detect which
file the user has chosen to open a file with, and if it's that application,
then the app detects what file the user has chosen and loads it. How can I
add the feature to my App?
 
Simon Brown said:
I have noticed that in most proffesional applications, they detect which
file the user has chosen to open a file with, and if it's that
application,
then the app detects what file the user has chosen and loads it. How can I
add the feature to my App?

I'm not sure what you are asking.

Are you asking how you can associate a file type with an application so that
clicking on it, for example, opens the file with that application? If so,
then the answer is here:

http://msdn.microsoft.com/library/d...sics_extending/fileassociations/fileassoc.asp

Or are you asking how an application determines the name of the file that
caused it to launch? If so, the answer is above as well. There are registry
keys that the shell consults to see how to pass the name of the file to the
application. A good deal of the time, the file name an argument to the
program.

Regards,
Will
 
Back
Top