Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. browseforfolder, digital camera, driveletter?

browseforfolder, digital camera, driveletter?

Scheduled Pinned Locked Moved C / C++ / MFC
sharepointtutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rolfhorror
    wrote on last edited by
    #1

    I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function, its visible in the browselist, but since its not and SFDIR like "My Computer" and "ControlPanel" it wont return any string other than NULL.(the browseforfolder function works with other usb devices since they return a driveletter). The camera inventory can be browsed with Explorer. So anyone know how to find the "driveletters" for these kinds of "drives" other than their names that shows in My Computer like "Canon DIGITAL IXUS 500" or "OLYMPUS SP-350"? maybe any workaround? or is this impossible? thanx!

    D 1 Reply Last reply
    0
    • R rolfhorror

      I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function, its visible in the browselist, but since its not and SFDIR like "My Computer" and "ControlPanel" it wont return any string other than NULL.(the browseforfolder function works with other usb devices since they return a driveletter). The camera inventory can be browsed with Explorer. So anyone know how to find the "driveletters" for these kinds of "drives" other than their names that shows in My Computer like "Canon DIGITAL IXUS 500" or "OLYMPUS SP-350"? maybe any workaround? or is this impossible? thanx!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      rolfhorror wrote:

      I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function...

      Do you mean SHBrowseForFolder()?

      rolfhorror wrote:

      ...but since its not and SFDIR...

      What is "SFDIR?"

      rolfhorror wrote:

      So anyone know how to find the "driveletters" for these kinds of "drives"...

      How about GetLogicalDriveStrings()?


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      R 1 Reply Last reply
      0
      • D David Crow

        rolfhorror wrote:

        I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function...

        Do you mean SHBrowseForFolder()?

        rolfhorror wrote:

        ...but since its not and SFDIR...

        What is "SFDIR?"

        rolfhorror wrote:

        So anyone know how to find the "driveletters" for these kinds of "drives"...

        How about GetLogicalDriveStrings()?


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        R Offline
        R Offline
        rolfhorror
        wrote on last edited by
        #3

        thanks for reply. yes its a SHBrowse... sorry i meant FSDIR (filesys) FSDIR like in the SHBrowse... flag RETURNONLYFSDIRS i'll do some testing with GetLogicalDriveStrings() -- modified at 11:34 Tuesday 10th April, 2007 ..i've tried GetLogicalDriveStrings() but it doesnt show up with this either.. cycled through the drives with this code just to see what turned up: char szBuffer[1024]; ::GetLogicalDriveStrings(1024, szBuffer); char *pch = szBuffer; while (*pch) { //printf("%s\n", pch); GetDlgItemText(IDC_EDIT1, m_edit1); SetDlgItemText(IDC_EDIT1, m_edit1+"\r\n"+pch); pch = &pch[strlen(pch) + 1]; } i think that this canon camera is not a "Logical drive" its more of a hidden "device" that has no driveletter. Rightclicking on the camera -> properties in MyComputer returns that its plugged into port: \\.\Usbscan0 whatever that means? and how to use this is some way? also read somewhere that Canon cameras could be hard to "talk to" programmatically.. but that just maybe a matter of programming-skills. -- modified at 11:52 Tuesday 10th April, 2007

        M 1 Reply Last reply
        0
        • R rolfhorror

          thanks for reply. yes its a SHBrowse... sorry i meant FSDIR (filesys) FSDIR like in the SHBrowse... flag RETURNONLYFSDIRS i'll do some testing with GetLogicalDriveStrings() -- modified at 11:34 Tuesday 10th April, 2007 ..i've tried GetLogicalDriveStrings() but it doesnt show up with this either.. cycled through the drives with this code just to see what turned up: char szBuffer[1024]; ::GetLogicalDriveStrings(1024, szBuffer); char *pch = szBuffer; while (*pch) { //printf("%s\n", pch); GetDlgItemText(IDC_EDIT1, m_edit1); SetDlgItemText(IDC_EDIT1, m_edit1+"\r\n"+pch); pch = &pch[strlen(pch) + 1]; } i think that this canon camera is not a "Logical drive" its more of a hidden "device" that has no driveletter. Rightclicking on the camera -> properties in MyComputer returns that its plugged into port: \\.\Usbscan0 whatever that means? and how to use this is some way? also read somewhere that Canon cameras could be hard to "talk to" programmatically.. but that just maybe a matter of programming-skills. -- modified at 11:52 Tuesday 10th April, 2007

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Have you looked into the Canon SDK? I've never used it but I hear it exists. I've only used TWAIN X| for Canon picture access.

          "If you can dodge a wrench, you can dodge a ball."

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups