AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi Load image from device without letter...

Load image from device without letter...

Ein Thema von WojTec · begonnen am 18. Apr 2010 · letzter Beitrag vom 18. Apr 2010
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Load image from device without letter...

  Alt 18. Apr 2010, 10:56
...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?
  Mit Zitat antworten Zitat
Reinhard Kern

Registriert seit: 22. Okt 2006
772 Beiträge
 
#2

Re: Load image from device without letter...

  Alt 18. Apr 2010, 16:13
Zitat von WojTec:
...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?
Hi, whenever i connect a digital camera or a MP3 player or a memory card to my computer, the contents are displayed (in explorer) as a drive with a new letter - i cannot see a problem.

Reinhard
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: Load image from device without letter...

  Alt 18. Apr 2010, 17:26
MP3, card reader - ok, but not camera, printer or probably phone too. See image.
Miniaturansicht angehängter Grafiken
bez_tytu__322_u_473.png  
  Mit Zitat antworten Zitat
fatalerror
(Gast)

n/a Beiträge
 
#4

Re: Load image from device without letter...

  Alt 18. Apr 2010, 18:10
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:
if OpenDialog1.execute then
begin
    str_path:= ExpandFileName(OpenDialog1.FileName);
    ShowMessage(str_path);
end;
see also ExpandUNCFileName
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#5

Re: Load image from device without letter...

  Alt 18. Apr 2010, 18:34
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.
  Mit Zitat antworten Zitat
fatalerror
(Gast)

n/a Beiträge
 
#6

Re: Load image from device without letter...

  Alt 18. Apr 2010, 18:52
Zitat von WojTec:
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.
You're right. sorry.
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#7

Re: Load image from device without letter...

  Alt 18. Apr 2010, 19:05
then you cannot access them that way then you have to user a specific API like TWAIN
Markus Kinzler
  Mit Zitat antworten Zitat
omata

Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
 
Delphi 7 Enterprise
 
#8

Re: Load image from device without letter...

  Alt 18. Apr 2010, 19:10
klick
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:16 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz