June 12, 200619 yr I added a boolean called "MODE" that is supposed to switch between horizontal and vertical presentation. The presentation itself works perfectly, but I am obviously not smart enough to figure out how to pass the parameter from the XML file to the dll. I added this to XMLCCallbacks.cpp:pParameters->GetParameter(DRAW_PROPERTY_MODE,&mode);---pParameters->SetParameterId (DRAW_NAME_MODE, DRAW_PROPERTY_MODE, pParameters->PARAMETER_TYPE_BOOL); And in GdiPlusRadar.cpp:bool mode = FALSE;---if(mode) y = pai_data->dlt_alt/-100;else y = -DEG_COS(pai_data->brg-true_hdg)*50*pai_data->dist/m_range;Now, what's missing here? /Thomas
June 12, 200619 yr Where do you pass the variable mode from XMLCCallbacks ::Draw() to GdiPlusRadar ::Draw()? I added each param in the Draw() definition in GdiPlusRadar.h, it could be done differently so it is such a long call with so much params, but as long as it works...
June 13, 200619 yr You have to redo the definition in GdiPlusRadar.h, the declaration in the GdiPlusRadar.cpp and the call in XMLCCallbacks.cpp of course.
June 13, 200619 yr Whoops. I forgot to change the call in XMLCCallbacks.cpp. Now it compiles OK, but the "mode" parameter is still not detected from the XML file. (A:GPS GROUND TRUE HEADING, degrees) Sorry if I sound like a complete idiot sometimes, but I AM one when it comes to C++. ;o)/Thomas
June 13, 200619 yr Arnie,I tried to download the files but they don't seem to be available now. Is there an updated link please?----Frank SafranekMirage Aircraft for Flight Simulatorhttp://www.mirage4fs.com/ Frank Safranek - Alphasim/Virtavia Paint Crew
June 20, 200619 yr Hi Arne,nice to meet you here again!I tried to d/l your zips, but it looks as if the aren`t on the server any more. Is there any chance to get them from you via mail?Danke!Herbert Pralle
June 20, 200619 yr Hi Herbert.Guten Tag! Arne posted a note to me today that he has put the files in the Avsim Library. So they should be available later today then.Frank Safranek - Alphasim Paint CrewMirage Aircraft for Flight Simulatorhttp://www.mirage4fs.com Frank Safranek - Alphasim/Virtavia Paint Crew
June 21, 200619 yr Thank you very much Arne. I have the file. It should prove interesting to use and to study from.--Frank SafranekMirage Aircraft for Flight Simulatorhttp://www.mirage4fs.com/ Frank Safranek - Alphasim/Virtavia Paint Crew
Create an account or sign in to comment