Jump to content
Sign in to follow this  
mfrantz

Vector gauges programming question

Recommended Posts

Guest

Integers and floats and mixing them are not trivial issues. I had a problem where I couldn't overlap a temporary and a selected heading bug when they should have been the same value. Turns out one was measuring an integer value and the other a float. Took me a while to find that one.Bill

Share this post


Link to post
Share on other sites

Hi Bill,Thanks for your interest. It is not a problem of code. I get this behaviour even when compiling and testing the SDK FlightMap example as it is - with no changes at all in the original code.So I guess the problem is somewhere else - system (WinXP), compiler (Bcc55), hardware or whatever :-hmmm Michael>Michael,>>Post the code snippet that's giving you the problem.>>Bill


Michael Frantzeskakis
Precision Manuals Development Group
http://www.precisionmanuals.com


devteam.jpg

Share this post


Link to post
Share on other sites
Guest Fabio Miguez

Hey Michael. Just checking back to see if you were able to solve this weird problem you were having? I hope so.By the way, I wish to congratulate you on such a great utility that ServInfo is. I cannot fly without it anymore, and it is extremelly well done. I am sure I speak for the entire crew here, great friggin job!

Share this post


Link to post
Share on other sites
Guest ba747heavy

>I am sure I speak for the entire crew here, great friggin job!Here here!

Share this post


Link to post
Share on other sites
Guest Fabio Miguez

Hey Michael.Where are you declaring PIXPOINT? I would suggest you try the following:Declare PIXPOINT dim; somewhere early in the code, before any macros, after the header.In PANEL_SERVICE_PRE_DRAW, declare:pelement = (PELEMENT_STATIC_IMAGE)(pgauge->elements_list[0]->next_element[0]);dim = pelement->image_data.final->dim;Sometimes FS doesn't like when you declare things on the fly and use them in the same line, as in dim. Let us know if anything changes.P.S. Don't forget, because of HTML tags, a < means [

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