×

Discussion Board

Results 1 to 2 of 2

Thread: syntax error

  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    syntax error

    Hello list,

    I get a syntax error during compilation, for the following code

    //.h file
    #define UID 1000
    class A
    {

    private:
    const TUid *pUid;
    };

    //.cpp file

    inside the ConstructL() method

    pUid = new (ELeave) TUid::Uid(UID);

    I get the syntax error for the above line in bold.

    Any guesses what could be wrong?

    TIA
    Vin

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: syntax error

    Hi

    Use this line of code
    pUid = new (ELeave) TUid(TUid::Uid(UID));

Similar Threads

  1. Syntax Error; WHY ???
    By amit_yadav in forum Mobile Java General
    Replies: 6
    Last Post: 2010-09-08, 17:03
  2. syntax error?
    By jewel87 in forum Symbian
    Replies: 4
    Last Post: 2010-02-04, 22:29
  3. Syntax error !
    By rangaravind in forum Symbian
    Replies: 2
    Last Post: 2009-07-21, 12:05
  4. Replies: 2
    Last Post: 2009-05-21, 06:14
  5. Syntax error, I think...
    By wirefree101 in forum Symbian
    Replies: 4
    Last Post: 2008-02-17, 19:27

Posting Permissions

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