Sign in to follow this  
Guest

GDI+

Recommended Posts

Hey all.For those of you drawing vectors (although it seems not too many, as the vast majority here prefers XML), I was wondering if anybody had succes with using GDI+ instead of the GDI, since the GDI+ interface offers antialiasing and gradient brushes.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hey,lets ask the other way around - Did you encounter any problems using GDI++?Regrads,Marcel

Share this post


Link to post
Share on other sites

Hey Marcel.I assume you are referring to GDI+, since I haven't heard of GDI++.The problem I am having is in compiling code in Visual C++ that includes the header file for the GDI+.I believe I have passed the problem VC++ had with the header file itself, but I can't seem to be able to Initialize (startup) GDI+.I know it is doable, but I am stumbling...

Share this post


Link to post
Share on other sites

Same here, no VC++, but MinGW, also non compiling headers throwing uncountable errors.Etienne

Share this post


Link to post
Share on other sites

Hey,The problem is the fs2002 gauges.h which is not compatible with C++. The GDI+ header needs C++, so you receive a lot of errors by the attempt of compiling the gauge in C.There are a few possibilities - compile on source file with the gauge header in C and link it with the source file of the GDI+ header in C++.You can also export the hdc within the gauge to a fs2002 module which now draws on the gauge.

Share this post


Link to post
Share on other sites

Ever tried my reworked headers fs2gauges.h or fs2k2gauges.h? They are C++ compatible.Arne Bartels

Share this post


Link to post
Share on other sites

Hello Arne.Yes, I am using your gauges.h. I had problems with the GDI+ header and VC, but now I am past that, just still not able to draw without making FS crash.

Share this post


Link to post
Share on other sites

Hello Marcel.Thanks for the help. I have sent you an e-mail through this forum, did you get it?

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