CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    CA , USA
    Posts
    83

    opening many docs from explorer in same application

    Hi

    I would like to open many documents in the same application. i.e if a user selects bunch of document files of my application from the explorer and hits enter all of them should get opened in the same application instead of craeting new applications for each of them. (some thing like selecting a bunch of .jpg files and hitting enter opens all of them in photoshop)

    Any help is greately appreciated.

    Thanks
    Shashi

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543
    This is Single Instance problem with additional requirement.
    The simple single instance application checks if other instance
    is already running, and closes itself in this case. Your application
    before closing should also parse command line and ask by some
    way other running instance to open file.
    There are may samples of single instance application. I beleive
    you can find something that you need or at least application that
    is good start point.

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