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. COM
  4. Excel events inside a DLL

Excel events inside a DLL

Scheduled Pinned Locked Moved COM
c++comquestioncsharpvisual-studio
2 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.
  • Z Offline
    Z Offline
    Zizilamoroso
    wrote on last edited by
    #1

    I've a question about this example: It opens excel and inserts an eventsink to catch the events inside excel. HOWTO: Catch Microsoft Excel Application Events Using VC++ Q186427 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q186427 I've tried this example using an MFC-EXE, and all works fine. When you press start, the excel application shows up. Clicking with the mouse results in a event messagebox. But, if you want to include this functionality inside an MFC-DLL, it will not work. Excel shows up alright, but when you click something or press a button, the excel application will block. After a while a messagebox shows up saying: "Microsoft Excel is waiting for another application to complete an OLE action." Short: using a .exe works fine, but the .dll blocks. Why? What's the difference here? (I've used MFC in both cases)
    [VISUAL STUDIO 6.0] [MFC] [WIN98/2]


    X| Bluute tette! X|

    S 1 Reply Last reply
    0
    • Z Zizilamoroso

      I've a question about this example: It opens excel and inserts an eventsink to catch the events inside excel. HOWTO: Catch Microsoft Excel Application Events Using VC++ Q186427 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q186427 I've tried this example using an MFC-EXE, and all works fine. When you press start, the excel application shows up. Clicking with the mouse results in a event messagebox. But, if you want to include this functionality inside an MFC-DLL, it will not work. Excel shows up alright, but when you click something or press a button, the excel application will block. After a while a messagebox shows up saying: "Microsoft Excel is waiting for another application to complete an OLE action." Short: using a .exe works fine, but the .dll blocks. Why? What's the difference here? (I've used MFC in both cases)
      [VISUAL STUDIO 6.0] [MFC] [WIN98/2]


      X| Bluute tette! X|

      S Offline
      S Offline
      soptest
      wrote on last edited by
      #2

      must do:

      while(GetMessage())
      DispatchMessage();

      soptest

      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