CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Aug 2009
    Location
    Finally back in Alaska
    Posts
    141

    Re: Problem implementing an interface

    No, this isnt for a com interface. I was just trying to make the code as exact to the C# code in c++ as I could since the C# code allready worked for the most part.

    I have the signature in the interface and the implementation exactly as shown below, however, the compiler still says I dont have it implemented. Am I supposed to have virtual in both the interface and the implementation? do I need to follow the implementation with the override keyword? I tried all this with and without those keywords, I copied and pasted the interface code into the implementation definition just in case I mistyped something that I am not seeing but Im still at a loss.


    Code:
    virtual void GetApplicationThreadCount(String^ applicationId, Int32 %totalthreads, Int32 %unfinishedThreads);
    by the way, this is the error Im getting:

    Error C3766: 'Alchemi::Manager::Storage::InMemoryManagerStorage' must provide an implementation for the interface method
    'void Alchemi::Core::Manager::Storage::IManagerStorage::GetApplicationThreadCount(System::String ^,int %,int %)' c:\programming\c++ version\working dir\mymanager\mymanager\MyManager.h 1302
    Last edited by AKRichard; April 1st, 2011 at 08:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured