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. _com_dispatch_method undefied

_com_dispatch_method undefied

Scheduled Pinned Locked Moved C / C++ / MFC
c++testingtoolsquestion
12 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.
  • R Offline
    R Offline
    Rene De La Garza
    wrote on last edited by
    #1

    im trying to do some excel automation but im getting that _com_dispatch_method is undefined, im using MFC, any idea why?

    P 1 Reply Last reply
    0
    • R Rene De La Garza

      im trying to do some excel automation but im getting that _com_dispatch_method is undefined, im using MFC, any idea why?

      P Offline
      P Offline
      Peter Molnar
      wrote on last edited by
      #2

      Did you call AfxOleInit or CoInitialize before any automation code? Bunburry

      R 2 Replies Last reply
      0
      • P Peter Molnar

        Did you call AfxOleInit or CoInitialize before any automation code? Bunburry

        R Offline
        R Offline
        Rene De La Garza
        wrote on last edited by
        #3

        yes, but i doesn´t even compile i get that linker error "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

        P 1 Reply Last reply
        0
        • R Rene De La Garza

          yes, but i doesn´t even compile i get that linker error "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

          P Offline
          P Offline
          Peter Molnar
          wrote on last edited by
          #4

          #include <atlcom.h> #include <comdef.h> does this help compiling? Bunburry

          R 1 Reply Last reply
          0
          • P Peter Molnar

            #include <atlcom.h> #include <comdef.h> does this help compiling? Bunburry

            R Offline
            R Offline
            Rene De La Garza
            wrote on last edited by
            #5

            ¿? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

            P 1 Reply Last reply
            0
            • R Rene De La Garza

              ¿? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

              P Offline
              P Offline
              Peter Molnar
              wrote on last edited by
              #6

              sorry if forgot the <> tags So again: #include <atlcom.h> #include <comdef.h> Bunburry

              R 1 Reply Last reply
              0
              • P Peter Molnar

                sorry if forgot the <> tags So again: #include <atlcom.h> #include <comdef.h> Bunburry

                R Offline
                R Offline
                Rene De La Garza
                wrote on last edited by
                #7

                Nope Still the Same :( "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                P 1 Reply Last reply
                0
                • R Rene De La Garza

                  Nope Still the Same :( "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                  P Offline
                  P Offline
                  Peter Molnar
                  wrote on last edited by
                  #8

                  my last idea: #include <comutil.h> Bunburry

                  R 1 Reply Last reply
                  0
                  • P Peter Molnar

                    my last idea: #include <comutil.h> Bunburry

                    R Offline
                    R Offline
                    Rene De La Garza
                    wrote on last edited by
                    #9

                    nope :( still the same "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                    P 1 Reply Last reply
                    0
                    • R Rene De La Garza

                      nope :( still the same "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                      P Offline
                      P Offline
                      Peter Molnar
                      wrote on last edited by
                      #10

                      Try uncommenting COM related code snippets, try figure out which part causes this Bunburry

                      R 1 Reply Last reply
                      0
                      • P Peter Molnar

                        Try uncommenting COM related code snippets, try figure out which part causes this Bunburry

                        R Offline
                        R Offline
                        Rene De La Garza
                        wrote on last edited by
                        #11

                        i will thanks a lot "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                        1 Reply Last reply
                        0
                        • P Peter Molnar

                          Did you call AfxOleInit or CoInitialize before any automation code? Bunburry

                          R Offline
                          R Offline
                          Rene De La Garza
                          wrote on last edited by
                          #12

                          hi, i found the solution this weekend , i just needed to add comsuppw.lib :-O , thanks for all your help :-D "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                          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