<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I have written the code for Enumerating Hp 5590 the call is <br><br>bool CSaneWrapper::EnumerateDevices()<br>{<br>&nbsp;&nbsp;&nbsp; SANE_Status statusCode;<br>&nbsp;&nbsp;&nbsp; statusCode = sane_get_devices(&amp;_device_list, SANE_TRUE);<br>&nbsp;&nbsp;&nbsp; if( statusCode != SANE_STATUS_GOOD )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return false;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int i;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for( i = 0; _device_list[i] != NULL; i++ );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _devicecount = i;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return true;<br>}<br><br>The same code works fine with HP-4370 but fails for 5590 Shall I need to copy some of the .c file in u<b>sr\incude\sane directory ?<br><br>I am able to scan image from Terminal when I type the command ScanImage.<br><br>Thanks<br></b><br><br><br /><hr />Akshay Kumar takes on the two reigning Bollywood Khans. Catch the action on MSN Entertainment! <a href='http://entertainment.in.msn.com' target='_new'>Check it out!</a></body>
</html>