Canon RE-350 Webcam User Manual


 
63
RE-350 32bit Sample Code (
\32BITSDK)
Notes:
1) This example application was written and compiled with Microsoft C/C++ and SDK Version 4.0 (32 bits ONLY).
Open the project in Microsoft Visual C/C++ 4.0 to edit and recompile.
2) The RE-350 driver (RE350.DLL) is located in .\EXAMPLE\RE350 and has been setup as a sub-project of EXAMPLE.
It will be automatically updated if
EXAMPLE is set as the project. The output is directed to the EXAMPLE\RELEASE
directory so any changes made to the DLL will be automatically loaded by the application next time it is run.
EXAMPLE explicitly loads and unloads the DLL using LoadLibrary() and FreeLibrary() to facilitate this (see
EXAMPLE.C).
3)
RE350.C and RE350.H constitute the basic driver and are generalized to work with any application. All of the
functions return an error code (defined in
RE350.H) to indicate whether the operation was successful.
Initialize communications with the RE-350:
int FAR PASCAL RE350_Open( int iComPort )
int iComPort: RE350_COM1-RE350_COM4
Execute an RE-350 command:
int FAR PASCAL RE350_Command( int iDevice, int nCmd, WORD wRequest, LPWORD lpwResponse );
int iDevice: device 0-3 (check dipswitch on the back)
int nCmd: Command defined in RE350.H.
WORD wRequest: Request data if required by command.
(Use RE350_NULL_REQUEST if not required).
LPWORD wRequest:Pointer to response (or NULL).
Close communications with the RE-350:
VOID FAR PASCAL RE350_Close( VOID );
4) EXAMPLE.C is a simple application which demonstrates the operation of the driver. After getting this to compile in
your environment, you can add additional commands (via RE350_Command) to test the cameras operation.
All of the RE-350 commands are implemented through this function.
All rights are reserved. No part of this document may be photocopied, reproduced, translated to another language, stored in a
retrieval system, or transmitted in any form without the prior written consent of Canon U.S.A., Inc.
The information contained in this document is subject to change without notice. Canon U.S.A., Inc. makes no warranty of any
kind with reguard to this written material. Canon U.S.A., Inc. assumes no responsibility for any errors that may appear in this
document or for incidental or consequential damages in connection with the furnishing, performance or use of this manual.
Canon is a registered trademark of Canon, Inc. ©1996 Canon U.S.A., Inc. 11.13.96
All trademarks and registered trademarks are the property of their respective owners.
This product is provided AS IS. For questions regarding product operation contact Canon Information
Technology Services at 1-800-828-4040