|
-
May 7th, 1999, 09:39 PM
#1
File Association
After a file is associated with an application, how does a program know that it
was called by the association and not by double clicking on it.
What i want to know is it i double click on a .dat file and it is associated with myprog.exe how does myprog.exe know that foobar.dat was double clicked and how does myprog.exe populate a (i.e.) List Box with the info from foobar.dat?
Thanks
-
May 8th, 1999, 01:30 AM
#2
What exactly do you want to do...
...If you want your program to open an associated file when the file is double-clicked in Explorer, check out EnableShellOpen() and related functions.
...If you want your program to open any kind of file with its associated program, try FindExecutable() and ShellExecute().
-
May 8th, 1999, 01:22 PM
#3
Re: File Association
This and other information is contained in the m_lpCmdLine members of your application class.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|