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. Issue: adding functions to existing COM EXE [modified]

Issue: adding functions to existing COM EXE [modified]

Scheduled Pinned Locked Moved COM
comhelp
3 Posts 3 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.
  • K Offline
    K Offline
    KTTransfer
    wrote on last edited by
    #1

    I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.

    modified on Monday, November 2, 2009 5:26 AM

    S R 2 Replies Last reply
    0
    • K KTTransfer

      I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.

      modified on Monday, November 2, 2009 5:26 AM

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

      You have to add this two functions to the end of your interface

      1 Reply Last reply
      0
      • K KTTransfer

        I have added two functions to existing COM EXE which runs as Service. But while calling those functions from another application I am getting unhandled exception like: Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation. Existing functions are getting called but only new functions are not working. I have added functions to xxx.idl and implemented in another application by including the header generated after building. I am trying to unregister old COM EXE but its not. Please give me clue to sort out the issue. I am new to COM, please let me know any further info is required to look in this issue. Regards, KTTransfer.

        modified on Monday, November 2, 2009 5:26 AM

        R Offline
        R Offline
        Roger Stoltz
        wrote on last edited by
        #3

        KTTransfer wrote:

        I have added two functions to existing COM EXE which runs as Service.

        You are most likely breaking one important rule of COM: Interfaces are immutable. Once assigned an IID and published, no element of the interface definition may change.. Read more here[^].

        "It's supposed to be hard, otherwise anybody could do it!" - selfquote
        "High speed never compensates for wrong direction!" - unknown

        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