Jump to content
Sign in to follow this  
Guest AndrewW

Borland C++ error reports

Recommended Posts

Guest JeanLuc_

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
Guest AndrewW

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
Guest AndrewW

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
Guest JeanLuc_

(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
Guest AndrewW

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...