CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    Boston
    Posts
    18

    Determine saved filename from external editor?

    I need to bring up an editor (preferably the user's favorite) for the user to enter in a script or other data. I need to know the filename where they save the data. There are a few paths to investigate:

    Any Editor: Is there some way to get the filename after the editor is closed? Doubt one mechanism will work in all cases.

    Any Editor 2: While I can pass in a filename to start with, it seems like I'd have to find a way to disable any "Save As" menu item so I always get the file I started with.

    Custom Editor: Make the user learn yet another flavor of simple editor for our own convenience, but it's going to lack something that he wants. BTW, my company is not in the editor business.

    Others? Suggestions?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Determine saved filename from external editor?

    I'd use a COM compliant Editor that supports an automation interface, e.g. Word.
    That way you have full control over the "Save" process.


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