×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    17

    illegal use of abstract class

    Hi to all,
    i try to write a simple application to do an HTTP post.
    i declared this class:
    Code:
    // on the header file
    class CProConnect : public CBase, public MHTTPTransactionCallback, public MHTTPDataSupplier,
                public MHTTPAuthenticationCallback
                	{
                	
    public:
    	
    	static CProConnect* NewL();
    	static CProConnect* NewLC();
    	CProConnect();
    	~CProConnect();
    	void ConstructL();
    }
    
    //on the .ccp file
    
    CProConnect::CProConnect()
      {
      }
    
    
    
    CProConnect* CProConnect::NewL()
      {
      CProConnect* self = CProConnect::NewLC();
        CleanupStack::Pop(self);
        return self;
      }
    
    
    CProConnect* CProConnect::NewLC()
      {
      CProConnect* self = new (ELeave) CProConnect();  //in this line I have the error
        CleanupStack::PushL(self);
        self->ConstructL();
        return self;
      }
    
    
    void CProConnect::ConstructL()
      {
      //iRepository = CRepository::NewL( KCRUidProfileEngine );
      }
    
    
    
    CProConnect::~CProConnect()
    	{
    	
    	}

    When I compile i have this error on NewLC funcition:
    illegal use of abstract class ('MHTTPAuthenticationCallback::GetCredentialsL(const TUriC8 &, RString, RStringF, RString &, RString &)')

    I don't know why i have this error.
    Someone can help me?
    thank you very much.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: illegal use of abstract class

    check that you have implemented all virtual functions from the MHTTPAuthenticationCallback in the class that derives from it.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    17

    Re: illegal use of abstract class

    Thank you symbianyucca,
    you are right, i forgot to implement all virtual function.
    Sorry for my error, i'm a new developer
    Thank you very much
    vituperio

Similar Threads

  1. send array[0] different class
    By gift_te in forum Symbian
    Replies: 0
    Last Post: 2007-03-28, 13:04
  2. Replies: 2
    Last Post: 2005-11-10, 09:39
  3. help! illegal use of abstract class?
    By flicker82 in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-07-30, 07:51
  4. Replies: 3
    Last Post: 2004-07-16, 13:09
  5. Replies: 5
    Last Post: 2004-03-18, 07:45

Posting Permissions

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