请看在 msdn 中摘录的一段:Platform SDK: Image Color Management AssociateColorProfileWithDevice The AssociateColorProfileWithDevice function associates a specified color profile with a specified device.BOOL WINAPI AssociateColorProfileWithDevice( PCTSTR pMachineName, // reserved, must be NULL PCTSTR pProfileName, // file name containing device profile PCTSTR pDeviceName // name of device );
是你把标识写错了吧.
是不是LPCTSTR啊.可不一样哦~~
The AssociateColorProfileWithDevice function associates a specified color profile with a specified device.BOOL WINAPI AssociateColorProfileWithDevice(
PCTSTR pMachineName, // reserved, must be NULL
PCTSTR pProfileName, // file name containing device profile
PCTSTR pDeviceName // name of device
);
BOOL WINAPI AssociateColorProfileWithDeviceA(PCSTR, PCSTR, PCSTR);
把PCTSTR改为PCSTR试一下。GOOD LUCKY。
typedef const TCHAR FAR PCTSTR;
下面的定义在winnt.h文件中
typedef CONST CHAR *LPCSTR, *PCSTR;
然后在 include path 中加入了一些必要的路径, 问题就解决了.谢谢诸位.