May 23rd, 2010 04:36 PM
#1
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.
May 23rd, 2010 04:48 PM
#2
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!
May 23rd, 2010 05:11 PM
#3
Re: Value Property
Your code is manage C++, not native C++. Try asking your question here .
May 25th, 2010 06:46 AM
#4
May 25th, 2010 06:48 AM
#5
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.
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
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks