Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Generic Office 2007 _Application Interface class

Generic Office 2007 _Application Interface class

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eight
    wrote on last edited by
    #1

    Using VS2008, I've created an MFC TypeLib class, CApplication from _Application Interface in Ms Word 12.0 Object Library <8.4>. As expected, the class works with my Word 2007, but doesn't with Excel, PowerPoint etc. My question, is there a way for me to create a CApplication class that caters to all the Ms Office family? I'm not looking at automating application specific functions, only common function (e.g: Save, Exit)

    M 1 Reply Last reply
    0
    • E eight

      Using VS2008, I've created an MFC TypeLib class, CApplication from _Application Interface in Ms Word 12.0 Object Library <8.4>. As expected, the class works with my Word 2007, but doesn't with Excel, PowerPoint etc. My question, is there a way for me to create a CApplication class that caters to all the Ms Office family? I'm not looking at automating application specific functions, only common function (e.g: Save, Exit)

      M Offline
      M Offline
      Migounette
      wrote on last edited by
      #2

      You cannot do it. It's a COM interface and all applications have a different signture and functions. So you need one per application and per version.

      E 1 Reply Last reply
      0
      • M Migounette

        You cannot do it. It's a COM interface and all applications have a different signture and functions. So you need one per application and per version.

        E Offline
        E Offline
        eight
        wrote on last edited by
        #3

        Too bad. I was hoping for an _Application interface that's being shared among all Office Apps (eg:_CommandBars). Does this mean I have to create individual dll for each Office App? I saw a few com addin that's available on my Word, Excel and PowerPoint. I don't think they have 3 separate dlls. Any idea how they are doing it?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups