Discussion Board

Results 1 to 2 of 2

Thread: header file

  1. #1
    Regular Contributor
    Join Date
    Jul 2007

    header file

    I have following declaration

    #include "WebRelatedInc\WebClientEngine.h"

    class GoogleTranslateAgent: public Agent
    GoogleTranslateAgent(CWebClientEngine* worker);
    void IssueHttpRequest(TDes& content);
    void Parse(TDes& content, TDes&parseResult);


    CWebClientEngine is defined in the WebClientEngine.h file

    the Agent.h is in the same folder (namely, WebRelatedInc)..do I need to include the Agent.h in this header file? I got undefined identifier 'Agent'..

    but when i include Agent.h file in this header, i got class 'Agent' redefine..and i am sure that I don't define any class Agent in the class CWebClientEngine

    here is my definition in the Agent.h

    #include "WebRelatedInc\WebClientEngine.h"
    enum AgentType;

    class Agent
    public: //function

    virtual void IssueHttpRequest(TDes& content)=0;
    virtual void Parse(TDes& content, TDes&parseResult)=0;
    AgentType getType() const
    return type;

    public: //memeber
    CWebClientEngine* iworker;
    AgentType type;

    can some one help?


  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: header file

    just add these two lines on the top of the agent.h header file:

    #ifndef __MY_AGENT_H__
    #define __MY_AGENT_H__

    and this line into the end:


Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. Missing Header file listOf.h
    By bcchong in forum Multimodecards
    Replies: 1
    Last Post: 2002-06-22, 22:38
  5. Please help on the missing header file.
    By bcchong in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-06-02, 03:49

Posting Permissions

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