Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / November 2006

Tip: Looking for answers? Try searching our database.

Getting errors trying to upgrade to VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Lamm - 17 Nov 2006 22:01 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.