From: Yurik V. N. <yu...@me...> - 2007-09-27 10:45:37
|
Hi Matthew! =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 27 =D3=C5=CE=D4=D1=C2=D2=D1 2007 Mat= thew Gong =CE=C1=D0=C9=D3=C1=CC(a): > Hi Yurik, > It's strange! what does the version number is in your xml file? It's version 2.0. This is part of xml file (it's an-2): =3D=3D=3D <?xml version=3D"1.0"?> <?xml-stylesheet type=3D"text/xsl"=20 href=3D"http://jsbsim.sourceforge.net/JSBSim.xsl"?> <fdm_config name=3D"AN-2" version=3D"2.0" release=3D"ALPHA" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=3D"http://jsbsim.sourceforge.net/JSBSim.xs= d"> <fileheader> <author> Yurik V. Nikiforoff and Aeromatic v 0.9 </author> <filecreationdate> apr 2007 </filecreationdate> <version> 0.2 </version> <description>Legendary Russian AN-2</description> </fileheader> =2E.. =3D=3D=3D I check text_ctrl_info_cfgver->GetValue() : cout<<text_ctrl_info_cfgver->GetValue()<<endl; I get 2.0 After convert to double: double d;=20 text_ctrl_info_cfgver->GetValue().ToDouble(&d); cout << d << endl; I get 2 If I write: cout<<text_ctrl_info_cfgver->GetValue().ToDouble(&d)<<endl; I get zero, but "d" have proper value (2). =2D-=20 Wbr, Yurik |