-
Value Property
Hi, I have a little project set up that handles a bunch of numbers. It's a mathematical utility program, and the pseudo-code formula looks like this:
x = (f*a - d*c) / (d*b - e*a);
I expected it to be pretty simple.
You know, the familiar x->Value = a->Value, etc. But the code
x2->Value = ( (f->Value)*(a->Value) - (d->Value)*(c->Value) ) / ( (d->Value)*(b->Value) - (e->Value)*(a->Value) );
returns the Build Error
'Value' : is not a member of 'System::EventArgs'.
I've tested individual code snippets, and I think the problem lies in the second part, after the division.
-
Re: Value Property
Aha! The compiler apparently was trying to treat "e" as scientific notation. I simply renamed the object the obscure "e_number" and all is golden!
-
Re: Value Property
Your code is manage C++, not native C++. Try asking your question here.
-
Re: Value Property
-
Re: Value Property
Looks like this code is part of an event handler, that has two arguments, a sender and event arguments, which usually is a variable called e. Probably you also have a variable called e, or assume one, and there is the problem.