<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;?]]></title><description><![CDATA[<p>Hallo</p>
<p>Wenn ich ein File abspeichern will mache ich dass folgendermaßen:</p>
<p>Speich-&gt;SaveToFile(SaveDialog1-&gt;FileName + &quot;.txt&quot;);</p>
<p>Ich will nun wissen, ob das File nach dem drücken auf OK (Im Speichermenü) abgespeichert wurde.</p>
<p>Wie frage ich das ab?</p>
<p>quasi: &quot;Wenn das Abspeichern funktioniert hat, dann mache weiter&quot;</p>
<p>Danke für eure Antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161349/savedialog-lt-edit-gt-ergebnis-überprüfen-lt-edit-gt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 10:59:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161349.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Oct 2006 17:58:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 20:18:03 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Wenn ich ein File abspeichern will mache ich dass folgendermaßen:</p>
<p>Speich-&gt;SaveToFile(SaveDialog1-&gt;FileName + &quot;.txt&quot;);</p>
<p>Ich will nun wissen, ob das File nach dem drücken auf OK (Im Speichermenü) abgespeichert wurde.</p>
<p>Wie frage ich das ab?</p>
<p>quasi: &quot;Wenn das Abspeichern funktioniert hat, dann mache weiter&quot;</p>
<p>Danke für eure Antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150090</guid><dc:creator><![CDATA[ferdl1987]]></dc:creator><pubDate>Thu, 05 Oct 2006 20:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 18:02:41 GMT]]></title><description><![CDATA[<p>Guck mal in der Hilfe nach FileExists()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150095</guid><dc:creator><![CDATA[DSabba]]></dc:creator><pubDate>Thu, 05 Oct 2006 18:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 18:03:26 GMT]]></title><description><![CDATA[<p>Schau dir zum Beispiel mal die Funktion <em>FileExists()</em> an! Die sollte dir auf jedenfall weiterhelfen!</p>
<p>mfg carstenbauer</p>
<p><strong>EDIT</strong>: Argh zu spät! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150096</guid><dc:creator><![CDATA[carstenbauer]]></dc:creator><pubDate>Thu, 05 Oct 2006 18:03:26 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 18:34:16 GMT]]></title><description><![CDATA[<p>Danke! Hat super funktioniert.</p>
<p>Eine Frag habe ich noch:</p>
<p>Ich will ein Menü mit:</p>
<p>speichern &amp; speichern unter</p>
<p>machen.</p>
<p>Wenn ich jetzt auf &quot;Speichern unter&quot; klicke, wird meine Datei gespeichert.<br />
Wie kann ich meinem Programm klarmachen, dass es beim anschließenden Druck auf &quot;Speichern&quot;, die vorige Datei überschreibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150119</guid><dc:creator><![CDATA[ferdl1987]]></dc:creator><pubDate>Thu, 05 Oct 2006 18:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 19:07:46 GMT]]></title><description><![CDATA[<p>merk dir den Dateinamen und mach dann einfach wieder SaveToFile, dabei wird die Datei automatisch und ohne nachfragen überschrieben, natürlich nur solange sie nicht schreibgeschützt ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150155</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 05 Oct 2006 19:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 19:14:34 GMT]]></title><description><![CDATA[<p>kann man das mit</p>
<p>GetCurrentDir</p>
<p>machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150163</guid><dc:creator><![CDATA[ferdl1987]]></dc:creator><pubDate>Thu, 05 Oct 2006 19:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 19:21:50 GMT]]></title><description><![CDATA[<p>was? den Dateinamen merken?</p>
<p>wohl eher in einer Variable, z.B.</p>
<pre><code class="language-cpp">AnsiString FileName = SaveDialog1-&gt;FileName + &quot;.txt&quot;;
Speich-&gt;SaveToFile(FileName);
</code></pre>
<p>wobei die Definition der Variable im public- oder private-Bereich der Formular-Klasse wahrscheinlich besser aufgehoben ist, falls du aus mehreren Funktionen auf den Dateinamen zugreifen willst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150167</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 05 Oct 2006 19:21:50 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 20:19:18 GMT]]></title><description><![CDATA[<p>Immerhin muss ich mir ja auch den Pfad merken, in den ich das File gespeichert habe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150198</guid><dc:creator><![CDATA[ferdl1987]]></dc:creator><pubDate>Thu, 05 Oct 2006 20:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to SaveDialog &amp;lt;edit&amp;gt;Ergebnis überprüfen&amp;lt;&#x2F;edit&amp;gt;? on Thu, 05 Oct 2006 20:22:31 GMT]]></title><description><![CDATA[<p>ferdl1987 schrieb:</p>
<blockquote>
<p>Ich will nun wissen, ob das File nach dem drücken auf OK (Im Speichermenü) abgespeichert wurde.</p>
</blockquote>
<p>SaveToFile wirft eine Exception, wenn das Speichern fehlschlägt. Explizites Nachprüfen ist also überflüssig.</p>
<p>PS.<br />
In SaveDialog::FileName steht der Dateiname <strong>einschliesslich</strong> Pfad.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150199</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 05 Oct 2006 20:22:31 GMT</pubDate></item></channel></rss>