I finally get to move our source from VS2003 to VS2005 but VS2005 is giving
me errors involving a set of interfaces. Specifically the errors are:
Error 195: Class 'Engine' must implement 'Function Shutdown(pError As
ERRORHANDLINGSERVICESLib.EErrorHandler) As Boolean' for interface
'SubSystemInterfaces.IEEngine'.
and the related message,
Error 202: 'Shutdown' cannot implement 'Shutdown' because there is no
matching function on interface 'SubSystemInterfaces.IEEngine'.
The thing is, the method *is* implemented and it *does* match the function
on the interface.
The interface is in C#:
bool Shutdown(ERRORHANDLINGSERVICESLib.EErrorHandler pError);
The implementing class is in VB.NET:
Public Function Shutdown(ByVal pError As
ERRORHANDLINGSERVICESLib.EErrorHandler) As Boolean Implements
SubSystemInterfaces.IEEngine.Shutdown
The heart of problem is the ERRORHANDLINGSERVICESLib.EErrorHandler
parameter. It's unmanaged, legacy C++ code referenced through a COM Interop.
If I remove this parameter from the interface and the function, everything is
fine. In VS2003 this code works fine. Can anyone tell me why VS2005 is giving
me grief?
Anon - 27 Nov 2006 23:30 GMT
I'm having a similar problem with a converted 2003 project. The build will fail with the message:
Error 2 'GetIndexValues' cannot implement 'GetIndexValues' because there is no matching function on interface 'Domain.ILogic'. C:\mypath\Logic.vb
but it is there and is implemented