Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SANE question
Hi,

I'm trying to implement using SANE within Scribus and I'm hitting a small
snag. While the majority of the API is really simple to use, I'm having a
problem with what SANE_Handle is.

The sane.h header has it defined as

typedef void *SANE_Handle;

There are plenty of functions which require SANE_Handle, but nothing which
actually sets it!

According to the sane website, SANE does not require that a value of this
type be a legal pointer value and an application shouldn't attempt to
interpret the value of SANE_Handle.

This doesn't make sense - it looks like I can quite happily send "flibble"
as the handle and it makes no difference (okay, I know that's not the
case...).

How should I set the handle. For instance, when I obtain the device list,
I have two show for my USB webcam and one for my scanner. I have to be
able to set the handle to the scanner. Is it enough to set the handle to
the device name or should it be set to the physical /dev/sg0 value (which
is not a good idea!)

TTFN

Paul

--
"There are four stages to any war
First they ignore you, then they laugh at you
Then they fight you, then YOU win."
Ghandi


Report this thread to moderator Post Follow-up to this message
Old Post
Paul F. Johnson
09-19-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:15 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.