Canon SDK & .NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Yellin

    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

  • Chris, Master of All Things Insignificant

    #2
    Re: Canon SDK & .NET

    Do you have a reference to the dll in your project?

    Chris

    "Bill Yellin" <wyellin@co.dut chess.ny.us> wrote in message
    news:1108057364 .489820.268540@ c13g2000cwb.goo glegroups.com.. .[color=blue]
    > 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
    >[/color]


    Comment

    • Bill Yellin

      #3
      Re: Canon SDK &amp; .NET

      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.

      Comment

      • Chris, Master of All Things Insignificant

        #4
        Re: Canon SDK &amp; .NET

        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" <wyellin@co.dut chess.ny.us> wrote in message
        news:1108058878 .913004.221420@ l41g2000cwc.goo glegroups.com.. .[color=blue]
        > 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.
        >[/color]


        Comment

        • Bill Yellin

          #5
          Re: Canon SDK &amp; .NET

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

          Comment

          • Pug

            #6
            Re: Canon SDK &amp; .NET

            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" <wyellin@co.dut chess.ny.us> wrote in message
            news:1108059362 .753357.73050@o 13g2000cwo.goog legroups.com...[color=blue]
            > Sorry - I tried adding a reference and I'm told that it's 'not a valid
            > assembly or COM object'.
            >[/color]


            Comment

            • Bill Yellin

              #7
              Re: Canon SDK &amp; .NET

              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

              Comment

              • Ken Tucker [MVP]

                #8
                Re: Canon SDK &amp; .NET

                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.



                Ken
                ------------------------
                "Bill Yellin" <wyellin@co.dut chess.ny.us> wrote in message
                news:1108057364 .489820.268540@ c13g2000cwb.goo glegroups.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


                Comment

                • Bill Yellin

                  #9
                  Re: Canon SDK &amp; .NET

                  Thanks, Ken - I'll check it out out Monday. (Not working tomorrow,
                  Friday.)

                  .....Bill

                  Comment

                  Working...