<?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[Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich öffne mitels</p>
<pre><code>CFileDialog Dialog(FALSE);
if(Dialog.DoModal() == IDOK)
</code></pre>
<p>einen Dilaog und würde bei diesem gerne vorher die Dateierweiterung festlegen. Wie geht das?</p>
<p>Vielen Dank</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160157/erweiterungen-für-quot-speichern-dilaog-quot-festlegen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 16:14:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160157.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Sep 2006 13:24:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 13:24:14 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich öffne mitels</p>
<pre><code>CFileDialog Dialog(FALSE);
if(Dialog.DoModal() == IDOK)
</code></pre>
<p>einen Dilaog und würde bei diesem gerne vorher die Dateierweiterung festlegen. Wie geht das?</p>
<p>Vielen Dank</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142561</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 22 Sep 2006 13:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 14:16:19 GMT]]></title><description><![CDATA[<p>Wenn Du unter Dateierweiterung dasselbe verstehst wie ich unter Dateiendung:<br />
Damit hatte ich auch einige Zeit Probleme. Nachdem <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-155772-and-highlight-is-.html" rel="nofollow">einiges andere nicht funktionierte</a>, klappte schließlich:</p>
<pre><code class="language-cpp">CFileDialog schreibdialog(FALSE,static_cast&lt;LPCTSTR&gt;(L&quot;txt&quot;),static_cast&lt;LPCTSTR&gt;(L&quot;vorgeschlagener Name&quot;),OFN_EXPLORER,static_cast&lt;LPCTSTR&gt;(L&quot;Textdatei (*.txt) |*.txt|Textdatei (*.dat) |*.dat|alle Dateien (*.*) |*.*|&quot; ));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1142609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142609</guid><dc:creator><![CDATA[dong]]></dc:creator><pubDate>Fri, 22 Sep 2006 14:16:19 GMT</pubDate></item><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 14:28:33 GMT]]></title><description><![CDATA[<p>dong schrieb:</p>
<blockquote>
<pre><code class="language-cpp">CFileDialog schreibdialog(FALSE,static_cast&lt;LPCTSTR&gt;(L&quot;txt&quot;),static_cast&lt;LPCTSTR&gt;(L&quot;vorgeschlagener Name&quot;),OFN_EXPLORER,static_cast&lt;LPCTSTR&gt;(L&quot;Textdatei (*.txt) |*.txt|Textdatei (*.dat) |*.dat|alle Dateien (*.*) |*.*|&quot; ));
</code></pre>
</blockquote>
<p>Diese cast's sind alle Überflüssig und würden in enem MBCS Programm zur Fehlfunktion führen.<br />
Einfach nur _T Makros verwenden:</p>
<pre><code class="language-cpp">CFileDialog schreibdialog(FALSE,_T(&quot;txt&quot;),_T(&quot;vorgeschlagener Name&quot;),OFN_EXPLORER,_T(&quot;Textdatei (*.txt) |*.txt|Textdatei (*.dat) |*.dat|alle Dateien (*.*) |*.*|&quot; ));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1142619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142619</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 22 Sep 2006 14:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 15:16:59 GMT]]></title><description><![CDATA[<p>Danke für die Infformation!<br />
Ist aus ähnlichen Gründen das _T Makro auch dem T Makro vorzuziehen,<br />
ist also z.B. <em>MessageBox(_T(&quot;Text&quot;));</em> besser als <em>MessageBox(L&quot;Text&quot;);</em> ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142651</guid><dc:creator><![CDATA[dong]]></dc:creator><pubDate>Fri, 22 Sep 2006 15:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 16:24:10 GMT]]></title><description><![CDATA[<p>dong schrieb:</p>
<blockquote>
<p>Danke für die Infformation!<br />
Ist aus ähnlichen Gründen das _T Makro auch dem T Makro vorzuziehen,<br />
ist also z.B. <em>MessageBox(_T(&quot;Text&quot;));</em> besser als <em>MessageBox(L&quot;Text&quot;);</em> ?</p>
</blockquote>
<p>Zweiteres geht nur bei einem Unicode build erstes geht für MBCS und Unicode.</p>
<p>Weiterer Tip: AfxMessaageBox ist auch der Funktion MessageBox vorzuziehen, da AfxMessageBix zentralere Funktionen bietet und auch sicherer das aktuelle Fenster disabled/enabled.</p>
<p>Meiner Meinung nach hätte MessageBox direkt in der nachfolge Version von MFC 1.0 entfernt werden müssen, aber ist aus Kompatibilität drin geblieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142684</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 22 Sep 2006 16:24:10 GMT</pubDate></item><item><title><![CDATA[Reply to Erweiterungen für &amp;quot;Speichern-Dilaog&amp;quot; festlegen on Fri, 22 Sep 2006 17:03:23 GMT]]></title><description><![CDATA[<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142721</guid><dc:creator><![CDATA[dong]]></dc:creator><pubDate>Fri, 22 Sep 2006 17:03:23 GMT</pubDate></item></channel></rss>