I found this web page
http://sondreb.com/blog/post/Windows-Mobile-Photo-Capture.aspx that has a program in C++ (i think), that takes pictures in a period of time. It uses a custom .dll (the mobilecamera.dll) to achieve that.
I tried to port this code to a project of mine, but no luck. this is the code i used:
Declaration of the functions:
Function CaptureStill(filename:string):boolean; stdcall; external 'mobilecamera.dll' name 'CaptureStill';
Function InitializeGraph(p:HWND):boolean; stdcall; external 'mobilecamera.dll' name 'InitializeGraph';
and i am trying to take a shot with this:
var b:boolean;
begin
InitializeGraph(form1.Handle);
sleep(1000);
b:=CaptureStill(home+'image.jpg');
sleep(3000);
if b=true then begin
label1.caption:='ok';
//image1.Picture.LoadFromFile(home+'image.jpg');
end else label1.caption:='not ok';
end;
All i succeed is to take a true response from the capturestill function, but no file is written in the flashcard (or anywhere else).
Any suggestions? Is there any other way to take pictures with my mobile phones camera, periodically?