By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

"No matching function on interface" when Method contains COMenumeration

P: n/a
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
Sep 5 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.