[Mono-dev] =?gb2312?B?UmU6IFtNb25vLWRldl0gUmU6IFtNb25vLWRldl0gQ2FuIGxpYmdkaXBsdXMgYmUgdXNlZCBpbiB3aW5lIG9yIAl3aW5kb3dzPw==?=

=?gb2312?B?b2tlbg==?= okenjian at 163.com
Wed Jul 14 09:42:59 EDT 2010


I have tried to call the the functions in libgdiplus.
There are some conflicts between the win32structs.h and files included by windows.h, I modified win32structs.h to eliminate them.
I use the following command:
cl /nologo *.cpp /DWIN32 /IC:/gtk+/include/glib-2.0 /IC:/gtk+/lib/glib-2.0/include /I"./libgdiplus" /I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include" -I"C:\Program Files\Microsoft Visual Studio 9.0\VC\include" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\uuid.lib" "C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcmt.lib" "C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\oldnames.lib" "C:\Program Files \Microsoft SDKs\Windows\v6.0A\Lib\Kernel32.lib" libgdiplus/*.c  /IC:/gtk+/include/freetype2 /IC:/gtk+/include /IC:/gtk+/include/libpng14 /IC:/gtk+/include/cairo /IC:/gtk+/include/pango-1.0
All the source of mono.libgdiplus is in the directory ¡°libgdiplus¡±.

but some files are missing:
pthread.h features.h bits/predefs.h
I can find pthread.h and features.h in LINUX, as they are GNU C library.
However, I didn't find bits/predefs.h

I think that even thought I find it out, there will be many other problem. But i will try my best to make it out!

Here is the source: http://mono.1490590.n4.nabble.com/file/n1537623/gditest.tar.bz2
It works in both Linux and windows: using mono.libgdiplus in linux and windows's gdiplus.dll in windows.
But how can i use mono.libgdiplus in windows.
Who can help me?
Thanks.






·¢¼þÈË£ºVincent Povirk
·¢ËÍÈÕÆÚ£º2010-07-14 10:11
ÊÕ¼þÈË£ºoken 
³­ËÍ£ºmono-devel-list at lists.ximian.com 
Ö÷Ì⣺ Re: [Mono-dev] Re: [Mono-dev] Can libgdiplus be used in wine or windows?
> "Mono's Windows Forms implementation makes heavy use of GdiPlus, and Wine's 
> builtin gdiplus.dll is not very good. "(under Known Issues on 
> http://wiki.winehq.org/Mono) 

I stand by that statement. You are likely to encounter problems. 

Still, I believe your effort would be better directed toward getting 
these bugs documented and fixed than the (judging by the other 
responses in this thread) non-trivial task of building a windows or 
winelib libgdiplus. 
. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100714/791ebc63/attachment.html 


More information about the Mono-devel-list mailing list