Log in

View Full Version : Problems with Contrast settings via ExtEscape()


fuje
02-28-2005, 02:27 PM
hi

i us the command ExtEscape() to adjust the contrast on a windows CE 5.0 platform device. i get all the time the error code 87 (ERROR_INVALID_PARAMETER), eventhough i am able to get and set the contrast value.

here my sample code:

ContrastCmdInputParm contCmdIn;
int res;

contCmdIn.command = CONTRAST_CMD_GET;
contCmdIn.parm = 0;

res = ExtEscape(m_Hdc, CONTRASTCOMMAND, sizeof(contCmdIn), (LPCSTR)&contCmdIn, 0, NULL);

fuje
03-11-2005, 10:44 AM
so, the problem was not my code. the 3rd party driver was not correct.