Hi,

> Set icm file to monitor error ( AssociateColorProfileWithDevice error )

I've been trying to get that combination working for years,
unfortunately with no success at all.

> Do you have an idea on what this error 6 means ?
Invalid controller. Is a sort of generic error.

>I have called a installColorProfile but when I look in
>the advanced property of the screen property, the
>color manager doesn't contain my new profile. Do you
>have an idea why?

That is what I also tried. Maybe the filename has to
contain no path, who knows? As said, I tried hard
without success. The Win32 API documentation says
almost nothing on that. ICM requires the profile to be
located at color directory, perhaps you are supposed
to copy the profile first?

But anyway, I would recommend to avoid ICM if
possible, it is based on very ancient code  and has some
severe bugs. I originally developed lcms because my
frustration about ICM.

Regards,
--
Marti Maria
The littlecms project.
www.littlecms.com





----- Original Message ----- 
From: "Jean-Francois Tardiff" <[EMAIL PROTECTED]>
To: <lcms-user@lists.sourceforge.net>
Sent: Wednesday, May 18, 2005 6:04 PM
Subject: [Lcms-user] Set icm file to monitor error ( 
AssociateColorProfileWithDevice error )


Hi

I try to apply an icm file to a monitor.
I work with delphi.

To change the profile I have tried:

InstallColorProfileA( nil, PAnsichar(IcmFileName)); //
Result is Ok

AssociateColorProfileWithDeviceA( 0,
PAnsichar(IcmFileName), PAnsichar(DeviceName));
// Result is not OK
// Get last error report error 6
// DeviceName is ok, I can have it with a procedure
like
//      EnumDisplayDevices(nil, Index,
lpdisplaydevice1, 0);
//
EnumDisplayDevices(@lpdisplaydevice1.DeviceName, 0,
lpdisplaydevice2, 0);
//     MONITORHDC := getdc(CreateDC(0,
lpdisplaydevice2.DeviceName , 0, 0));


First question:
Do you have an idea on what this error 6 means ?
Second question:
I have called a installColorProfile but when I look in
the advanced property of the screen property, the
color manager doesn't contain my new profile. Do you
have an idea why?








_____________________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.12 - Release Date: 17/05/2005




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.12 - Release Date: 17/05/2005



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to