Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
Hello guys, I´m having a hard time with this SDK called QCamApi.
For instance, I´m trying to get this method, without any success.
 
/*
 *  QCam_ListCameras()
 *  
 *  Discussion:
 *    Retrieve a list of connected cameras.
 *  
 *  Parameters:
 *	(IN)	pList - User allocated array to fill in
 *	(OUT)	pList - Filled in with the list of connected cameras
 *	(IN)	pNumberInList - Length of the array
 *	(OUT)	pNumberInList - Number of cameras found
 *	
 *	Remarks: 
 *	  On return, pNumberInList may contain a number that is bigger than the array size.
 *
 *  Result:
 *    QCam_Err code  //QCam_Err is a typedef enum with several error codes
 */
    #define QCAMAPI __stdcall;
    extern QCam_Err QCAMAPI QCam_ListCameras
    (
    QCam_CamListItem*   pList,              
    unsigned long*      pNumberInList       
    );
 
The document that come along with has this example:
 
 
QCam_CamListItem list[10];
unsigned long listLen = sizeof(list)/sizeof(list[QCam_CamListItem]);
// load the driver
QCam_LoadDriver();
// get a list of the cameras
QCam_ListCameras(list, &listLen);
 
I got this Erros/Warning List
 
Warning 1 warning C4229: anachronism used : modifiers on data are ignored
Error 2 error C2078: too many initializers
Error 3 error C2440: 'initializing' : cannot convert from 'unsigned long *' to 'QCam_Err'
4 IntelliSense: a value of type "QCam_CamListItem *" cannot be used to initialize an entity of type "QCam_Err"
5 IntelliSense: expected a ')'
 

I believe I´m calling this __stdcall in the wrong way, I´ve tried a lot of things. Hope you can help me.
 
If someone wants more information, the QCam SDK is available here (http://www.qimaging.com/support/downloads/[^]
Posted 15-Mar-13 4:43am
Comments
Matthew Faithfull at 15-Mar-13 11:26am
   
Have you #included the necessary header or headers from the SDK?
What form does the SDK take, are you linking to a QCam Dll of some kind?
It might also be helpful if you post the complete error messages with line numbers as it's a little difficult to determine if the errors you're listing actually comes from the lines you've posted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Richard MacCutchan 269
1 Aajmot Sk 252
2 Marcin Kozub 235
3 Sergey Alexandrovich Kryukov 185
4 Praneet Nadkar 167
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 15 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100