![]() |
Bild speichern -> Exception
Hi,
ich versuche gerade mal selbst ne Kompo zu erstellen, allerdings hab ich ein Problem. Wenn ich eine BitMap speichern will, bekomm ich folgendes: Zitat:
Delphi-Quellcode:
Naja, mach ich jedenfalls nen "Hardcoded"-Dateinamen a la "I:\datei.bmp"; funktioniert es tadellos.
pPath := ExtractFilePath(ParamStr(0)) + StringReplace(DateToStr(Date),'.','-', [rfReplaceAll]) + '\' + StringReplace(TimeToStr(Time),':','-', [rfReplaceAll]) + '.bmp';
if fileexists(pPath) then begin i := 1; while fileexists(pPath) do begin pPath := ExtractFilePath(ParamStr(0)) + StringReplace(DateToStr(Date),'.','-', [rfReplaceAll]) + '\' + StringReplace(TimeToStr(Time),':','-', [rfReplaceAll]) + '_' + IntToStr(i) + '.bmp'; Inc(i); end; end; Kann mir jemand sagen was ich schon wieder übersehen hab? *g* MfG, air |
Re: Bild speichern -> Exception
Hallo Airblader,
existiert denn der Unterordner mit dem Datum? Wenn der Ordner nicht existiert, dann knallts natuerlich. Greetz alcaeus |
Re: Bild speichern -> Exception
Zitat:
Manchmal sieht amn echt den Wald vor lauter Bäumen nicht air |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:40 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