c++ code

Chris Robinson chris.kcat at gmail.com
Tue May 29 10:36:04 CDT 2007

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.

More information about the wine-devel mailing list