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

    AddDocTemplate outside of CWinApp::InitInstance



    Hi all,


    I am writing an app where need to be able to add multiple document templates

    outside of CWinApp::InitInstance(), it is for an MDI application. Does anybody have any idea of whether the framework is supports calling AddDocTemplate outside of CWinApp::InitInstance()? It is a single threaded application.


    Thanks in Advance,

    Mike

  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: AddDocTemplate outside of CWinApp::InitInstance



    You can do this anywhere, but you should add all document templates to an application before you call RegisterShellFileTypes if you want them to allow the user to open a data file created by your application by double-clicking it from within File Manager.


    I think it's OK if you call RegisterShellFileTypes more than once (don't forget to also call the EnableShellOpen member function when you call RegisterShellFileTypes).


    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