Jump to content
Sign in to follow this  
Guest bookmark

itrafficinfo examples needed

Recommended Posts

Guest bookmark

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

Share this post


Link to post
Share on other sites
Guest bartels

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

Share this post


Link to post
Share on other sites
Guest bookmark

I tried that, it says: error C2660: 'Draw' : function does not take 13 parameters

Share this post


Link to post
Share on other sites
Guest bartels

You have to redo the definition in GdiPlusRadar.h, the declaration in the GdiPlusRadar.cpp and the call in XMLCCallbacks.cpp of course.

Share this post


Link to post
Share on other sites
Guest bookmark

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

Share this post


Link to post
Share on other sites
Guest bartels

I put them in the library coming weekend. I'm not at home at the moment.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest Baumgarten

Hello Arne, i

Share this post


Link to post
Share on other sites
Guest bartels

The files are uploaded to the library now.

Share this post


Link to post
Share on other sites
Guest Baumgarten

Great News, Thanks for the info Frank!

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