camera SDK

Hello i am new with computer programming i have to work with cameras and the camera has a SDK. It has some examples about its control, and has some example codes written in c,C++. However the c++ codes start with stadfx.h so does this mean that all of the functions are written in visual c++? Can i also control the camera with DEV c++ and then use QT? here is the code:

#include "stdafx.h"
#include "XCamera.h"
#include "windows.h"
#include "conio.h"
#include "ctype.h"

void CaptureImageAndSaveToBMP(void)
{
XCamera *hCam = XCamera::CreateCamera(0, XCAMERA_VERSION);
if ((hCam != 0) && (hCam->IsInitialised()))
{
hCam->SetLowGain(true);
hCam->SetIntegrationTime(30000);
hCam->SetADCVIN(2650);
hCam->SetADCVREF(2550);

hCam->SetCoolingTemperature(300);
hCam->SetFan(true);

hCam->StartCapture();

Sleep(35); // 35000us

hCam->SaveImageBitmap("testbmp.bmp");

hCam->StopCapture();

delete hCam;
}
else
printf("Unable to open camera!\n");
}

int _tmain(int argc, _TCHAR* argv[])
{
CaptureImageAndSaveToBMP();

return 0;
}

You need a version of visual c++ to use those things. stdafx is part of visual c++ and after reading information on what you are trying to use it is a window mobile specific thing. You won't be able to use it with dev c++/gcc
Topic archived. No new replies allowed.