×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    2

    Unhappy Multiple markers at this line

    #ifndef HANDLEHTML_H
    #define HANDLEHTML_H

    // INCLUDES
    #include <e32base.h>
    #include <e32cmn.h>
    #include <utf.h>
    #include <f32file.h> //Link against efsrv.lib
    #include <xml\contenthandler.h> // for MContentHandler
    #include <xml\parser.h> // for CParser
    #include <coecontrolarray.h> // for CCoeControlArray
    #include <Avkon.hrh>

    #include "GridView.h"

    sing namespace Xml;

    class MHandleHtmlObserver
    {
    public:
    virtual void OnParseHtmlCompleted(TInt aError) = 0;//,TInt

    };

    class CHandleHtmlublic MContentHandler
    {
    public:
    ~CHandleHtml();
    static CHandleHtml* NewL(MHandleHtmlObserver& aObserver);
    static CHandleHtml* NewLC(MHandleHtmlObserver& aObserver);
    private:
    CHandleHtml(MHandleHtmlObserver& aObserver);
    void ConstructL();
    private:
    。。。。
    private:
    。。。。
    CGridView* iParent; // 这出问题
    public:
    // Private data
    MHandleHtmlObserver& iObserver;
    CParser* iParser;
    HBufC8* iBuffer;
    RArray<TInt>iCurrentLabelPosition;
    。。。。。
    };

    CGridView* iParent; 提示
    Multiple markers at this line
    - expected `;' before '*' token
    - ISO C++ forbids declaration of `CGridView' with no type
    这是什么原因那

  2. #2
    Registered User
    Join Date
    Dec 2009
    Posts
    2

    Re: Multiple markers at this line

    这是 CGridview.h

    #ifndef GRIDCONTROL_H
    #define GRIDCONTROL_H

    // [[[ begin generated region: do not modify [Generated Includes]
    #include <coecntrl.h>
    // ]]] end generated region [Generated Includes]
    #include <akngrid.h> // CAknGrid
    #include <eiklbo.h> // MEikListBoxObserver
    //#include "View.h"
    //#include "define_class.h"
    #include "HandleHtml.h"

    //class MHandleHtmlObserver;

    /**
    * Container class for expContainer
    *
    * @class CGridControl CGridControl.h
    */
    class CGridViewublic CView
    {
    public:
    ~CGridView();
    static CGridView* NewL(MHandleHtmlObserver& aObserver);
    static CGridView* NewLC(MHandleHtmlObserver& aObserver);
    private:
    CGridView(MHandleHtmlObserver& aObserver);
    void ConstructL(void);
    private:
    virtual void SizeChanged();
    void Draw(const TRect& aRect) const;
    CCoeControl* ComponentControl(TInt aIndex) const;
    TInt CountComponentControls() const;
    public:
    //for CView
    void SetMenu(CEikMenuPane* aMenuPane);
    void SelectMenu(TInt aCommand);
    void HandleMenu();
    private:
    void GridOnClick(TInt aIndex);
    void GridGroupOnClick(TInt aIndex);
    public:
    // 制作Grid
    void MakeGridBoxL(RPointerArray<HBufC8>& aGridImageName,RPointerArray<HBufC8>& aGridTitle);
    public:
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    void SetItems();
    private:
    virtual void HandleResourceChange(TInt aType);
    // 添加标题
    CDesCArray* AddGridTitle(RPointerArray<HBufC8>& aGridTitle);
    // 添加图标
    void GetArrayL(RPointerArray<HBufC8>& aGridImageName,CArrayPtr<CGulIcon>* aIcon,const TSize& aIconsize);
    // 响应数字键
    void SimulationKey(TInt aKey);
    public:
    RPointerArray<TItem>iItems;
    RPointerArray<TGridGroup>iGroup;
    private:
    CAknGrid* iMyGrid;
    CFbsBitmap* iBitmap;//iBitmap, grid icon
    CFbsBitmap* iMask; //iMask, mask of grid icon
    TInt iType;
    private:
    MHandleHtmlObserver& iObserver;
    };

    #endif // GRIDCONTROL_H

Similar Threads

  1. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  2. [moved] HELP! Phone Debug (GCCE)
    By joseph.m in forum Symbian
    Replies: 18
    Last Post: 2008-07-14, 10:42
  3. compilation error: identifier redeclared
    By netra in forum Symbian
    Replies: 2
    Last Post: 2007-06-22, 10:42
  4. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 12:40

Posting Permissions

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