Jump to content
Sign in to follow this  
Guest coal

Converting to gdi+

Recommended Posts

Guest frndd0

Hi guys,I have been developing c gauges for about a year now and have recently decided to broaden my horizons. I have tried to do some research into gdi+ gauges, however i dont really know where to start. Does anyone know of any good tutorials or sample code that i can work through and basically set me on my way?many thanks :)

Share this post


Link to post
Share on other sites
Guest Patrick_Waugh

Arne published a radar gauge awhile back that is a good example of one way to setup GDI+ in FS. It's called "trafficradar", and you should be able to find it in all the usual places.The best reference besides the API docs on MSDN2 is a book "Graphics Programming with GDI+", but all the examples are in C#, so you will have to "translate" to C++. This is not hard if you simple look up stuff in the API docs.Be warned that it is not a trivial thing, especially if you are doing a multi-gauge and wish to properly encapsulate stuff. It requires an advanced understanding of both the FSAPI, and C++, but there are many here who have gone down this road and could help you.

Share this post


Link to post
Share on other sites
Guest frndd0

After having a look round in the files part of this site i found the gauge you were talking about. It has all the bits i need to start working through to find out what does what! Thanks for the pointer. now let the games begin.....

Share this post


Link to post
Share on other sites
Guest coal

Could you tell me where did you find it? I cannotThanks

Share this post


Link to post
Share on other sites
Guest frndd0

If you go to the file library at the top of the page.once there search "gdi+".This will bring up two results. You want to download the fs2k2sdkwithgdi+ file, this has all the documentation that you will need.

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