Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using new MS GDI+ in C++ Builder (for BORLAND)

0 views
Skip to first unread message

Oktay Demirci

unread,
Dec 4, 2001, 10:01:09 AM12/4/01
to
I want to use new MS GDI+ classes im my application in C++ Builder.

I have a problem with it. I couldn't create Pen and draw any line. I create
Lib file using implib utility from GdiPlus.dll
But the microsoft says :

The GDI+ C++ interfaces come in the form of some header and lib files.
If
your environment doesn't support them, you won't be able to use C++
interface to GDI+. We do not support calling directly into the DLL - we
support only using the C++ classes via the header and lib files we ship
in
the PSDK.

Could you help me please?

Thank you.

Luigi Bianchi

unread,
Dec 4, 2001, 1:10:01 PM12/4/01
to
In C language all the functions are exported in the same way, regardless the
compiler vendor. This is because in C you cannot have overloaded functions,
so there is a 1:1 correspondance of functions and their names. As a side
effect, functions are exported by theurs name (more or less).
In C++ this is no more valid, because you can have functions with the same
name but with different parameter list. In order to make the linker work and
understand correctly which function to bind, the functions names are
"decorated" with something that represents the parameter list, so that their
"linked" names are different. Unfortunately each compiler vendor uses a
different strategy, so that a C++ function follows different rules. Classes
have the same (and possibly more) problems. So, until now MS exported the
functions as C functions, but GDI plus not.

i hope I have been clear (and correct)

Luigi

--
Luigi Bianchi
http://www.luigibianchi.com
n...@luigibianchi.com
Programming, C++, OWL, VCL, SDK, Dfm2API

"Oktay Demirci" <odem...@mostint.com> ha scritto nel messaggio
news:3c0ce608_1@dnews...

0 new messages