browseforfolder, digital camera, driveletter?
-
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!
-
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!
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
-
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
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
-
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
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."