CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    12

    Open files of different types

    In my application, when the user selects file "open" the standard file dialog box is displayed. How do I add to the list of file types (three character extensions). How would I then distinguish the files. Should I check the last three characters in LPCTSTR lpszPathName which is passed to my OnOpenDocument routine. Is there an example of this on codeguru.

    Thankyou
    Don


  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: Open files of different types

    Goto your resources. In string table there is an indificator IDR_MAINFRAME in this string your file types are described - change it. For understanding of format look at CFileDialog constructor at help.



    WBR Oak

  3. #3
    Join Date
    Apr 1999
    Posts
    383

    Re: Open files of different types

    Look at the docs for the CDocTemplate constructor and CDocTemplate::GetDocString.

    The string used sits in the string resource table with the same resource ID as is passed to the CDocTemplate constructor.

    Dave


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