1985 All American 2175 Posts user info edit post |
Anyone ever use it? I want to remote capture for time laps photography. I'm using c# ( which i'm pretty new at). I can get it to take a picture, but I want to transfer the pictures back to the host computer. There is almost not documentation on the internet for this, and the stuff that is out there is all for c++ which i don't know at all. Thanks! 4/26/2009 7:43:16 PM |
evan All American 27701 Posts user info edit post |
if you're pretty new at C#, why don't you just learn a real language like C++ instead?
also, doesn't it include a classfile for C#? just look at the entry points for the DLL, it should be fairly self explanatory.
[Edited on April 27, 2009 at 12:45 AM. Reason : http://dickchiang.blogspot.com/2008/01/programming-with-canon-digital-camera.html] 4/27/2009 12:41:42 AM |
smoothcrim Universal Magnetic! 18966 Posts user info edit post |
c++ syntax is a little less verbose but I doubt you'll be doing extensive OOP so it shouldn't be much different to learn for this project. although I can guarantee that without a sweet dll or header doc, this will be no fun 4/27/2009 9:00:05 AM |
1985 All American 2175 Posts user info edit post |
^,^^, thanks for the advice. I want to learn c# because that's what we use at work, and even though I'm not a programmer, it can't hurt to be able to understand or diagnose problems I have working with our homegrown software.
Anyway, I've been able to load the camera, adjust the settings (iso, aperature, shutter speed, etc.) and take a picture, But I'm stuck on transferring the pictures to the host computer. I'm sure it's simple, but... any advice?
I think I'm hung up on pointing to the directory info of the camera, as im getting an invalid handle error.
Im doing something like:
IntPtr volPointer; dirInfoType directoryInfo;
EDSDK.GetVolumeInfo(camera, out volPointer);
EDSDK.GetDirectoryInfo(volPointer, out directoryInfo);
where GetVolumeInfo and GetDirectoryInfo are part of the dll. getVolumeInfo works without error, but then GetDirectoryInfo fails with a handle error.
Any Ideas? It's probably simple, but im lost. 5/2/2009 12:43:32 PM |
smoothcrim Universal Magnetic! 18966 Posts user info edit post |
shot in the dark, but are you using double slashes for file paths? (you should be) 5/2/2009 1:19:27 PM |
1985 All American 2175 Posts user info edit post |
^ I haven't declared a filename yet, I was just trying to get the directory info of the files on the camera. 5/2/2009 1:40:53 PM |
1985 All American 2175 Posts user info edit post |
I figured it out, i was pointing to the directory of the pictures, and not the pictures themselves. Thanks 5/2/2009 3:17:56 PM |