CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Join Date
    May 1999
    Posts
    69

    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().



  3. #3
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured