P
Peter Hartlén
Hi!
I have some trouble getting Neil Cowburns Imaging library to work, and was
hoping there are some people here that is using it. I KNOW IT'S OLD but I'm
trying to shake some life into a Qtek 9090 PPC2003SE application by adding
camera support.
I'm using a Qtek 9090 (PPC2003SE), which goes under the HTC portfolio.
The issue I have is in the Capture method when the SendMessage function is
called. The returned data from
IntPtr hwndCamWiz = GetCameraWizardWnd(_path);
This works fine, the camera application is started and a photo is taken.
In the SendMessage method of the CallBackWindow we have these rows:
CopyData cd = (CopyData)Marshal.PtrToStructure(m.LParam, typeof(CopyData));
CaptureData rd = (CaptureData)Marshal.PtrToStructure(cd.lpData,
typeof(CaptureData));
The problem is that rd.ReturnCode is 4, which I am not sure what it stands
for (Perhaps InvalidArgument if it follows SHCameraCapture). The correct
return code is 0.
The only place I can see something that doesn't seem to be alright is how
the savefolder variable is stored. I set it to @"\Temp" but when retrieveing
it from it's Property it's not valid. I make sure @"\Temp" is a valid
directory!
Example:
saveFolder = @"\Temp\";
_camConfig.SaveFolder = saveFolder;
MessageBox.Show( _camConfig.SaveFolder ); <-- This returns some mumbo
jumbo...
So perhaps the WM_COPYDATA message fails because of an incorrect save path?
Any suggestion?
/ Peter
I have some trouble getting Neil Cowburns Imaging library to work, and was
hoping there are some people here that is using it. I KNOW IT'S OLD but I'm
trying to shake some life into a Qtek 9090 PPC2003SE application by adding
camera support.
I'm using a Qtek 9090 (PPC2003SE), which goes under the HTC portfolio.
The issue I have is in the Capture method when the SendMessage function is
called. The returned data from
IntPtr hwndCamWiz = GetCameraWizardWnd(_path);
This works fine, the camera application is started and a photo is taken.
In the SendMessage method of the CallBackWindow we have these rows:
CopyData cd = (CopyData)Marshal.PtrToStructure(m.LParam, typeof(CopyData));
CaptureData rd = (CaptureData)Marshal.PtrToStructure(cd.lpData,
typeof(CaptureData));
The problem is that rd.ReturnCode is 4, which I am not sure what it stands
for (Perhaps InvalidArgument if it follows SHCameraCapture). The correct
return code is 0.
The only place I can see something that doesn't seem to be alright is how
the savefolder variable is stored. I set it to @"\Temp" but when retrieveing
it from it's Property it's not valid. I make sure @"\Temp" is a valid
directory!
Example:
saveFolder = @"\Temp\";
_camConfig.SaveFolder = saveFolder;
MessageBox.Show( _camConfig.SaveFolder ); <-- This returns some mumbo
jumbo...
So perhaps the WM_COPYDATA message fails because of an incorrect save path?
Any suggestion?
/ Peter