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
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