Sign in to follow this  
n4gix

ATC_ID in C Gauge

Recommended Posts

What is the syntax and format for reading the XML variable for ATC_ID and then writing the value to string in C?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Probably something likePCHAR c_atc_string;execute_calculator_code ( (A:ATC ID, string), c_atc_string, 0 );Doug

Share this post


Link to post
Share on other sites

Try:...PCHAR patc=NULL;...execute_calculator_code("(A:ATC ID,string)",NULL,NULL,(const char **)&patc);....if(patc)//... patc....Arne Bartels

Share this post


Link to post
Share on other sites

Thanks, guys. I'll give it a go when I can find some time to "experiment."For now I'll simply use the old "tried and true" XML code I've used forever... ;)

Share this post


Link to post
Share on other sites

If you're going to experiment, start with Arne's example... I was just going from memory ;-) Doug

Share this post


Link to post
Share on other sites

>If you're going to experiment, start with Arne's example... >I was just going from memory ;-) >>DougNo problem, Doug. Right now I've got a much bigger fish to fry, but I'll return to it eventually. I just figured that by now someone would have already "done it" so why reinvent the wheel? ;)

Share this post


Link to post
Share on other sites

>Try:>...>PCHAR patc=NULL;>...>execute_calculator_code("(A:ATC ID,string)",NULL,NULL,(const>char **)&patc);>....>if(patc)>//... patc....>Arne BartelsHi Arne, Thanks for the code. I've not had much experience with strings in my project, mostly comprising of steam-gauges. I've been trying most of the afternoon to simply read the

Share this post


Link to post
Share on other sites

>If AnsiContainsStr(patc, 'G-BOAC')>>Is there a similar method for use in C? I

Share this post


Link to post
Share on other sites

Gents,Hello! I've been messing around with the scenery end of FS for a few years now, but now I'm trying to create an FS Module. I'd like to read the ATC_ID with the module and I was hoping to use the execute_calculator_code I can't seem to find where the function is defined though. Is there a way I can include this in my module? Thanks for the help!Matt Perryfoxtrotsierra.org

Share this post


Link to post
Share on other sites

The function is defined in the GAUGES.H header file distributed with the FS9 Panels SDK.Doug

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