Click here to Skip to main content
13,095,218 members (69,531 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
// 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 ([^]
Posted 15-Mar-13 3:43am
Matthew Faithfull 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 15 Mar 2013
Copyright © CodeProject, 1999-2017
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