GDIPlus with Cbuilder2010

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Yazou
Newbie
Newbie
Posts: 9
Joined: Fri Jan 30, 2009 12:00 am

GDIPlus with Cbuilder2010

Post by Yazou » Mon Mar 01, 2010 1:55 pm

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,

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDIPlus with Cbuilder2010

Post by Yeray » Wed Mar 03, 2010 11:01 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yazou
Newbie
Newbie
Posts: 9
Joined: Fri Jan 30, 2009 12:00 am

Re: GDIPlus with Cbuilder2010

Post by Yazou » Wed Mar 03, 2010 11:22 am

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,

Yazou
Newbie
Newbie
Posts: 9
Joined: Fri Jan 30, 2009 12:00 am

Re: GDIPlus with Cbuilder2010

Post by Yazou » Wed Mar 03, 2010 1:25 pm

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,
Attachments
cpp_gdiplus.zip
TeeGDIPlus Cpp demo
(301.06 KiB) Downloaded 654 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDIPlus with Cbuilder2010

Post by Yeray » Wed Mar 03, 2010 4:10 pm

Hi Yazou,

I'm glad to see that you've solved it! And thank you for sharing your experience and code with the community.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply