"Chris Robinson" <[EMAIL PROTECTED]> wrote:
On Tuesday 29 May 2007 01:05:36 am Dmitry Timoshkov wrote:
Yes, Microsoft doesn't support calling GDI+ flat API from anything but C++
wrappers. But it shouldn't be too hard to construct an appropriate object
in plain C that represents GpBrush for instance.
It depends if it's an actual C++ API (eg. exposing classes with non-virtual
methods and member variables), or pure-virtual interfaces grabbed through a C
API ala DirectX. If it's the former, it may not be possible to convert it all
to C due to the name mangling and/or calling convention differences between
Unix/GCC and Windows. For that, the only thing that may work is to make an
actual cross-compiled Win32 DLL.
GpBrush is a pure implementation specific internal thing, as well as other
"classes". So it's completely in an developer favour to put anything he
likes to be there.
--
Dmitry.