PDA

View Full Version : registering my own camera event program


mbourlet
12th of February 2003 (Wed), 08:42
I am attempting to write my own Canon image processing program using the Canon SDK and register it as the default program to bring up when a camera event (USB connection) occurs. Has anyone tried this and if so were you successful and how did you do it? I've figured out that if you enter the program name into the registry under "MyComputer/HDEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/StillImage/Registered Applications" it does appear in the camera events list in the control panel "Cameras and Scanners". However, when I connect the USB cable an error occurs when it tries to run that program.

Jud Dagnall
13th of February 2003 (Thu), 03:54
I've got something similar is on my "to do" list. I was planning to use python, or perhaps perl since those are currently my languages of choice. I don't much time to devote to it for a few weeks, but would be willing to share ideas (my intent is to provide an open-source API in a scriptable langue, and/or associated utilities)

Dans_D60
13th of February 2003 (Thu), 14:48
I have success with registration of ActiveX programs that connect to and launch from USB or other ports. I also have the SDK from Canon and I’ll take a look but don’t know if I can help. I’m also curious with Jud’s comments. If he knows of a way to access low-level API calls using server side scripting, let me know! I don’t know how that can be done without a client side JAVA or ActiveX (VB, C++, and ASM) applet downloaded and registered as an object on the client system. Thanks!

Dan
http://www.pettusphoto.com

Jud Dagnall
16th of February 2003 (Sun), 15:16
My thought was to create a python library that would simply call the underlying c/c++ Canon SDK api. The main benefit would be making the libraries accessable via a scriptable language instead of a compiled language-- everything would remain client-side.

Dans_D60
16th of February 2003 (Sun), 22:46
Jud Dagnall wrote:
My thought was to create a python library that would simply call the underlying c/c++ Canon SDK api. The main benefit would be making the libraries accessable via a scriptable language instead of a compiled language-- everything would remain client-side.

Jud:

I think we’re off the subject of registering a USB launched app. But, if you know of a way to execute a client object from a server side script … I would like to know. I believe Python will only work in the Windows world under IIS as an ASP server scripting language. I don’t think it will run on a Windows client unless you install a Script Interpreter like ActiveState. But that is just as complicated as building the user interface (menu) in C++ . So the thought of having a server script execute a low level API on a client machine is still confusing to me. I could be wrong (wouldn’t be the first time!).
Dan
http://www.pettusphoto.com

DT3K
21st of March 2003 (Fri), 15:13
Where can Iget the Canon SDK

Dan_mobile
21st of March 2003 (Fri), 16:53
DT3K wrote:
Where can Iget the Canon SDK

http://www.powershot.com/powershot2/customer/develop1.html

DT3K
21st of March 2003 (Fri), 17:55
Sorry I should have said is there anywhere I can get the SDK without having to beg for it from Canon..lol

Dans_D60
21st of March 2003 (Fri), 21:55
DT3K wrote:
Sorry I should have said is there anywhere I can get the SDK without having to beg for it from Canon..lol

Actually the begging is quite easy. Fill out a form online and get a CD with 198 pages of well written documentation. The SDK includes an API library with over 150 functions. The documentation has easy to follow examples of every function. Worth the begging!
Dan
http://www.pettusphoto.com