Page 1 of 1

GDIPlus with Cbuilder2010

Posted: Mon Mar 01, 2010 1:55 pm
by 10551621
Hello,
I tried using GDIplus with a Cbuilder2010 project by including TeeGDIPlus.pas, gdipapi.pas and gdipobj.pas in my project but i got many compiling errors for these files.
Do any one have already used teegdiplus in Cbuilder ?

Its seems that the gdipapi and gdipob are little bit old.
Why not trying a supported delphi 2009 and later gdi+ interface like this one : http://www.bilsen.com/gdiplus ?
Regards,

Re: GDIPlus with Cbuilder2010

Posted: Wed Mar 03, 2010 11:01 am
by yeray
Hi Yazou,

The three pas files "TeeGDIPlus.pas", "GDIPAPI.pas" and "GDIPOBJ.pas" are given with the New features demo sources ("C:\Program Files\Steema Software\TeeChart 8.06 for Delphi 2010\Examples\Features") so if you need them you should be able to add them to your project (Right button in your project in the Project Manager, Add..., and navigate to the required file).

If you still find problems with it, please don't hesitate to let us know.

Regarding the GDI+ interface, we'd like to thank you for your suggestion. We'll study the convenience of upgrading to it.

Re: GDIPlus with Cbuilder2010

Posted: Wed Mar 03, 2010 11:22 am
by 10551621
Hello,
I included theses 3 files (There is a copy of theses files in the source directory also) in my project.
I put
#include <gdiplus.h> // needed for $EXTERNALSYM in gdipapi.pas
#include <TeeGdiplus.hpp> // generated file by the compiler from teegdiplus.pas

The C++ compiler fired many errors in gdipobj.hpp and gdipapi.hpp generated by the delphi compiler.

Best regards,

Re: GDIPlus with Cbuilder2010

Posted: Wed Mar 03, 2010 1:25 pm
by 10551621
Hi,
I modified the generated hpp files in order to make them compile without error with cppbuilder 2010.
I attached to this post a zip file with all the needed files to work with TeeGdiPlus with CPP builder 2010.
Regards,

Re: GDIPlus with Cbuilder2010

Posted: Wed Mar 03, 2010 4:10 pm
by yeray
Hi Yazou,

I'm glad to see that you've solved it! And thank you for sharing your experience and code with the community.