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.
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.
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.