[Qt-creator] Using Windows API directly
Stephen Chu
stephen at ju-ju.com
Sat Mar 27 22:59:03 CET 2010
Hi.
I have a piece of code that converts CMYK image data to color corrected
RGB for display. In Creator, I can use ColorSync for OS X by including
<ApplicationServices/ApplicationServices.h> and call the OS function
directly.
I need to do the same thing on Windows with WCS/ICM. So I include the
following:
#include <w32api.h>
#define _WIN32_WINNT WindowsVista
#include <windows.h>
#include <icm.h>
and call CreateColorTransform(). It compiles but fails to link. The ICM
API is documented to exist in Mscms.lib and .dll:
<http://msdn.microsoft.com/en-us/library/dd316829%28VS.85%29.aspx>
My question is, how do I make it link to the right library? I am using
mingw that comes with Creator 2.0 alpha on Window.
Thanks.
More information about the Qt-creator-old
mailing list