CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2012
    Posts
    13

    Error C2064 "term does noet evaluate to a function taking () argument

    Hello all!

    I get this error:
    Code:
    error C2064: term does not evaluate to a function taking 0 arguments
    First I didn't got this error for some reason, but now I do 0,0.
    Here's the piece of code where error exists:
    Code:
    if(GrabHour() + ":" + GrabMinute() + ":" + GrabSecond() == ListItem->SubItems[2]->Text)
    Yes I declared all the "Grabs", ListItem etc. It's all about the "(" & ")", that's what the error is actually saying. But because I didn't have this problem before, I don't know how to solve this stupid problem.

  2. #2
    Join Date
    Jan 2009
    Posts
    596

    Re: Error C2064 "term does noet evaluate to a function taking () argument

    We will need a lot more information to help you with this. Depending upon how GrabHour/Minute/Second etc are defined, this code could be ok.

    Please give as much information as possible about these definitions. If possible, post a complete, minimal program which we could actually (try to) compile to see the error for ourselves.

  3. #3
    Join Date
    Mar 2012
    Posts
    13

    Re: Error C2064 "term does noet evaluate to a function taking () argument

    Nevermind.

    Got it fixed, it was a stupidos fail.
    I had labels called GrabHour, GrabDay etc. etc.

    I renamed all the labels with the lbl in front.
    Thanks for your time.

Tags for this Thread

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