"No matching function on interface" when Method contains COMenumeration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter

    #1

    "No matching function on interface" when Method contains COMenumeration

    Hi

    I'm stuck and would appreciate some help.

    I have created a Class library project that contains a number of
    interface definitions that must be used by a range of other VB.NET
    applications. One of the interfaces has been defined as follows:

    Public Interface IPlugin

    Function GetScreenPop(By Val Name As String, ByVal CallType As
    DesktopToolkitX .TCallType, Optional ByVal CLI As String = "", Optional
    ByVal DNIS As String = "") As IPop

    End Interface

    The CallType parameter' DesktopToolkitX .TCallType type is an
    enumeration sourced from a COM type (ActiveX object).

    Other seperate project has a reference to the Class that exposes my
    IPlugin interface and the same COM type which exposes the
    DesktopToolkitX .TCallType enumeration. This Class implements
    GetScreenPop as shown below:

    Public Class Class1
    Implements MMDA.Interfaces .IPlugin

    Public Function GetScreenPop(By Val Name As String, ByVal CallType As
    DesktopToolkitX .TCallType, Optional ByVal CLI As String = "", Optional
    ByVal DNIS As String = "") As MMDA.Interfaces .IPop Implements
    MMDA.Interfaces .IPlugin.GetScr eenPop

    End Function

    End Class

    However, when the GetScreenPop method is implemented as shown above I
    get a "'GetScreen Pop' cannot implement 'GetScreenPop' because there is
    no matching function on interface 'Circle.MMDA.In terfaces.IPlugi n'
    error.

    The signature of the GetScreenPop method is identical and both
    projects reference the same ActiveX DLL that contains the
    DesktopToolkitX .TCallType type. I can see no reason why the "no
    matching function on interface" error is raised.

    Can someonehelp me diagnose and resolve this issue please. Thanks.

    Peter
Working...