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
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: | |
Execute an | |
int FAR PASCAL | RE350_Command( int iDevice, int nCmd, WORD wRequest, LPWORD lpwResponse ); |
int iDevice: | device |
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 | |
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 camera’s operation.
All of the
This product is provided AS IS. For questions regarding product operation contact Canon Information Technology Services at
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.
63