Canon SDK & .NET

  • Thread starter Thread starter Bill Yellin
  • Start date Start date
B

Bill Yellin

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
 
Do you have a reference to the dll in your project?

Chris
 
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.
 
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
 
Sorry - I tried adding a reference and I'm told that it's 'not a valid
assembly or COM object'.
 
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
 
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
 
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/...mpleGuid=167cdf2d-36a1-45db-80a8-3ee5ef1b91c0

Ken
------------------------
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
 
Thanks, Ken - I'll check it out out Monday. (Not working tomorrow,
Friday.)

.....Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top