Compatibility of MFC-based Automation?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Compatibility of MFC-based Automation?

  1. #1
    Join Date
    Nov 2010
    Posts
    45

    Compatibility of MFC-based Automation?

    I am reading the article http://msdn.microsoft.com/en-us/libr...ffice.10).aspx . I am just curious if I using Visual Studio Class Wizard to create MFC class based on Microsoft Word 97 type library Msword8.olb. Then will the final application works with higher versions, such as Word 2003, 2007, 2010 and 2013?

    Thanks

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,274

    Re: Compatibility of MFC-based Automation?

    It might work with "higher versions, such as Word 2003" but for sure not with "Word 2007, 2010 and 2013".
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2010
    Posts
    45

    Re: Compatibility of MFC-based Automation?

    Then how to make it work with Word 2007, 2010 and 2013? Does these Word provides type libraries and I can import them with Class Wizard as well?

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,927

    Re: Compatibility of MFC-based Automation?

    Office 2010: C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB
    Best regards,
    Igor

  5. #5
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,762

    Re: Compatibility of MFC-based Automation?

    Office DOM uses COM as a base, targeting an older version should work on newer versions of office as well this is part of the COM contract afterall.

    You won't of course be able to use any of the newer functionality that is only exposed in the later versions of the Office DOM.

    There might be minor annoyances because of changes in features. YMMV depending on what set of functionality you use.


    that said... Things may get messy if you're writing a 32bit app and the user has 64bit Office (or vice versa). if the user uses Office online, then i have no idea how that gets supported locally, if at all.

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,927

    Re: Compatibility of MFC-based Automation?

    Quote Originally Posted by OReubens View Post
    Things may get messy if you're writing a 32bit app and the user has 64bit Office (or vice versa).
    Any proof on that? My understanding is, any Office app is an out-of-proc COM server, so I would not expect any problem with this.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center