Sign in to follow this  
Guest AndrewW

Borland C++ error reports

Recommended Posts

Help AVSIM continue to serve you!
Please donate today!

from your code above://(float)autoland = 1 ; } else { rwert = 0 ; everything after the // is a commentif the // is not intentional, then remove it. If it is, then put on the next line what has to be compiled://(float)autoland = 1 ;} else { rwert = 0 ; Hope this helps!

Share this post


Link to post
Share on other sites

Thanks for your help JeanLuc, though the // was a typo; my apologies. It should read: if (*land == 1 && app == 1 && key_loc == 1 && *ap1_master == 1 && *ap2_master == 1 ) { rwert = 1 ; (float)autoland = 1 ; } else { rwert = 0 ; (float)autoland = 0 ; } return rwert;}It refuses to compile and claims that an Lvalue is required. What I don't understand is that *ap1_master, *ap2_master and *land are the Lvars (correct?) and these have been used in various callbacks without any problems.

Share this post


Link to post
Share on other sites

I've resolved the issue with the rc file. Though this code in the C file still baffles me. Commenting out the function results in no errors and a working gauge file. :-hmmmAppreciate any suggestions. [/font size]

Share this post


Link to post
Share on other sites

(float)autoland = 1casting goes to the other side of the = sign maybe in your case?

Share this post


Link to post
Share on other sites

That's done it :)Thanks for your help JeanLuc, appreciate it!Best Regards,Andy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this