"No matching function on interface" when Method contains COMenumeration

P

Peter

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(ByVal 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(ByVal 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.GetScreenPop

End Function

End Class

However, when the GetScreenPop method is implemented as shown above I
get a "'GetScreenPop' cannot implement 'GetScreenPop' because there is
no matching function on interface 'Circle.MMDA.Interfaces.IPlugin'
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top