469,271 Members | 1,718 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Canon SDK & .NET

Greetings!
Trying to get the CANON Camera SDK to work with .Net - works well in
VB6, and Canon does say that they're not supporting .Net, but I've seen
messages out here from people who are working with it. So....

I took a working VB6 app and let the wizard convert it to .Net. When
execurint cdStartSDK, I get an 'unable to load dll' error. I've tried
putting the CDSDK.dll in the all folder levels of the app, with no
change.

Anyone working with this, how do you have it set up? I'm using
version 6.1.2 of the SDK.

Thanks, ......Bill

Nov 21 '05 #1
8 8851
Do you have a reference to the dll in your project?

Chris

"Bill Yellin" <wy*****@co.dutchess.ny.us> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Greetings!
Trying to get the CANON Camera SDK to work with .Net - works well in
VB6, and Canon does say that they're not supporting .Net, but I've seen
messages out here from people who are working with it. So....

I took a working VB6 app and let the wizard convert it to .Net. When
execurint cdStartSDK, I get an 'unable to load dll' error. I've tried
putting the CDSDK.dll in the all folder levels of the app, with no
change.

Anyone working with this, how do you have it set up? I'm using
version 6.1.2 of the SDK.

Thanks, ......Bill

Nov 21 '05 #2
No. The dll can't be registered, and in their docs, Canon says that it
just has to be in the app folder. It works fine that way in VB6.

Nov 21 '05 #3
I wasn't asking if it was "registered". I asked if you added a reference to
it in your project. If you can't reference the dll in your project, then I
don't know how your would use it.

Chris

"Bill Yellin" <wy*****@co.dutchess.ny.us> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
No. The dll can't be registered, and in their docs, Canon says that it
just has to be in the app folder. It works fine that way in VB6.

Nov 21 '05 #4
Sorry - I tried adding a reference and I'm told that it's 'not a valid
assembly or COM object'.

Nov 21 '05 #5
Pug
To use the canon sdk you have to reference the sdk by p/invoke methods,
using vs to translate the vb6 example to .net should provide you with a
starting point. I was working on transferring the vb6 example in the v6 sdk
to .net but gave up when they released v7 sdk. It was split into two
libraries for eos and the powershot series with no vb examples and only
support for C. They even mention that they have no plans in developing or
supporting a .net version, which seems a little stupid to me as most
compilers now seem to be for the .net framework.

Steve
"Bill Yellin" <wy*****@co.dutchess.ny.us> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Sorry - I tried adding a reference and I'm told that it's 'not a valid
assembly or COM object'.

Nov 21 '05 #6
Yeah, I've seen that note. That's why I'm using version 6.
Actually, I've gotten past the problem described above by putting the
dll in the app's \bin folder. I can now issue the cdStart SDK command,
and run through the enumeration of the attached cameras (only one, of
course) to fill in the Source_Info structure. Need this to issue the
cdOpenSource command, but it dies there, on a return code of 167772288.

Any ideas?

Stinks not having access to tech support or a decent debug source. The
manual just covers the commands, not errors.

....Bill

Nov 21 '05 #7
Hi,

I have had luck with getting the canon camera sdk to work with
vb.net. Here is a sample in the got dot net web site that works.

http://www.gotdotnet.com/Community/U...8-3ee5ef1b91c0

Ken
------------------------
"Bill Yellin" <wy*****@co.dutchess.ny.us> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Greetings!
Trying to get the CANON Camera SDK to work with .Net - works well in
VB6, and Canon does say that they're not supporting .Net, but I've seen
messages out here from people who are working with it. So....

I took a working VB6 app and let the wizard convert it to .Net. When
execurint cdStartSDK, I get an 'unable to load dll' error. I've tried
putting the CDSDK.dll in the all folder levels of the app, with no
change.

Anyone working with this, how do you have it set up? I'm using
version 6.1.2 of the SDK.

Thanks, ......Bill
Nov 21 '05 #8
Thanks, Ken - I'll check it out out Monday. (Not working tomorrow,
Friday.)

.....Bill

Nov 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas Scheffler | last post: by
3 posts views Thread by Michael | last post: by
14 posts views Thread by Arne | last post: by
reply views Thread by robin | last post: by
reply views Thread by robin | last post: by
reply views Thread by robin | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.