Jump to content
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?


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

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

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... ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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? ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest AndrewW

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

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

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  

  • 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...