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. Visual Basic
  4. Calling Overloaded COM method in VB6

Calling Overloaded COM method in VB6

Scheduled Pinned Locked Moved Visual Basic
csharpcomhelp
5 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.
  • A Offline
    A Offline
    AksharRoop
    wrote on last edited by
    #1

    Hi All, I have interface defined in C# public interface ITABlock { public void Get(string id); public void Get(ITABlockElement obj); } This is implemented as: public class TABlock : ITABlock { // implementation of ITABlock methods } Now these methods are exposed to VB as Get and Get_2 so when calling Get_2 it gives an error: Object doesn't support this property or method Any solution for this. Thanks, AksharRoop

    A D 2 Replies Last reply
    0
    • A AksharRoop

      Hi All, I have interface defined in C# public interface ITABlock { public void Get(string id); public void Get(ITABlockElement obj); } This is implemented as: public class TABlock : ITABlock { // implementation of ITABlock methods } Now these methods are exposed to VB as Get and Get_2 so when calling Get_2 it gives an error: Object doesn't support this property or method Any solution for this. Thanks, AksharRoop

      A Offline
      A Offline
      AksharRoop
      wrote on last edited by
      #2

      Hope i have posted the question in correct forum...

      1 Reply Last reply
      0
      • A AksharRoop

        Hi All, I have interface defined in C# public interface ITABlock { public void Get(string id); public void Get(ITABlockElement obj); } This is implemented as: public class TABlock : ITABlock { // implementation of ITABlock methods } Now these methods are exposed to VB as Get and Get_2 so when calling Get_2 it gives an error: Object doesn't support this property or method Any solution for this. Thanks, AksharRoop

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        IIRC, calling overloaded COM methods from VB6 is not supported.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        A 1 Reply Last reply
        0
        • D Dave Kreskowiak

          IIRC, calling overloaded COM methods from VB6 is not supported.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          A Offline
          A Offline
          AksharRoop
          wrote on last edited by
          #4

          Is it the same case with calling COM method from VBA? Any documentation that i could find for this? I did not get anything from search engine...

          D 1 Reply Last reply
          0
          • A AksharRoop

            Is it the same case with calling COM method from VBA? Any documentation that i could find for this? I did not get anything from search engine...

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            AFAIK, it's the same problem. I can't find any documentation on it. I just remember having one hell of a time trying to get it to work, then I stumbled on something saying it doesn't - about 8 years ago.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            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