April 1, 200521 yr Moderator 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
April 1, 200521 yr Bill,(A:ATC ID, string) for XML, to make into C ummmm,, just dont know. Regards,Roman[a href=http://www.wheelchairaviators.org]http://online.vatsimindicators.net/820885/1793.png[/a] FS RTWR SHRS F-111 JoinFS Little Navmap
April 1, 200521 yr Probably something likePCHAR c_atc_string;execute_calculator_code ( (A:ATC ID, string), c_atc_string, 0 );Doug
April 1, 200521 yr Try:...PCHAR patc=NULL;...execute_calculator_code("(A:ATC ID,string)",NULL,NULL,(const char **)&patc);....if(patc)//... patc....Arne Bartels
April 1, 200521 yr Author Moderator 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
April 1, 200521 yr If you're going to experiment, start with Arne's example... I was just going from memory ;-) Doug
April 1, 200521 yr Author Moderator >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
July 31, 200520 yr >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
October 1, 200520 yr 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
October 1, 200520 yr The function is defined in the GAUGES.H header file distributed with the FS9 Panels SDK.Doug
Create an account or sign in to comment