![]() |
Load image from device without letter...
...such as camera or memory card plug-in to printer. So, these devices are represented as normal device, not a disc and internal disc don't have letter. And LoadFromFile is useless. How to get access to these files?
|
Re: Load image from device without letter...
Zitat:
Reinhard |
Re: Load image from device without letter...
Liste der Anhänge anzeigen (Anzahl: 1)
MP3, card reader - ok, but not camera, printer or probably phone too. See image.
|
Re: Load image from device without letter...
normally a drive can have no driveletter in two cases:
1. It is mounted as a folder on another NTFS volume. 2. It is not mounted in your screenshot you can see the file with an opendialog control, so this code should work:
Delphi-Quellcode:
see also ExpandUNCFileName
if OpenDialog1.execute then
begin str_path:= ExpandFileName(OpenDialog1.FileName); ShowMessage(str_path); end; |
Re: Load image from device without letter...
Don't work, file name from dialog is only file name on device, this function just adds program path to this name and finally file not found.
|
Re: Load image from device without letter...
Zitat:
|
Re: Load image from device without letter...
then you cannot access them that way then you have to user a specific API like TWAIN
|
Re: Load image from device without letter...
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:01 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz