<?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[CFileOpen unter NT]]></title><description><![CDATA[<pre><code class="language-cpp">void CFre_EinstellungDlg::OnBtGif() 
{
    CFileDialog m_ldFile(TRUE,&quot;gif&quot;,&quot;*.gif&quot;,OFN_HIDEREADONLY,&quot;Bild-Dateien *.gif&quot;,this);

    CString home = getenv (&quot;Userprofile&quot;);
    home = home + (&quot;\\Eigene Dateien\\&quot;);
    m_ldFile.m_ofn.lpstrInitialDir= home;

    if (m_ldFile.DoModal() ==IDOK)
    {
        m_strGif = m_ldFile.GetPathName();
    }

    GetDlgItem(IDC_EDIT_GIF)-&gt;SetFocus ();
    UpdateData(FALSE);
}
</code></pre>
<p>Wenn ich unter NT eine Datei öffnen möchte, passiert nix (Dialog geht nicht auf). Dies passiert aber nur unter NT. Habe keine Ahnung warum, in der MSDN steht auch nix darüber.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6313/cfileopen-unter-nt</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 10:02:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6313.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jun 2003 05:58:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CFileOpen unter NT on Fri, 20 Jun 2003 05:58:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void CFre_EinstellungDlg::OnBtGif() 
{
    CFileDialog m_ldFile(TRUE,&quot;gif&quot;,&quot;*.gif&quot;,OFN_HIDEREADONLY,&quot;Bild-Dateien *.gif&quot;,this);

    CString home = getenv (&quot;Userprofile&quot;);
    home = home + (&quot;\\Eigene Dateien\\&quot;);
    m_ldFile.m_ofn.lpstrInitialDir= home;

    if (m_ldFile.DoModal() ==IDOK)
    {
        m_strGif = m_ldFile.GetPathName();
    }

    GetDlgItem(IDC_EDIT_GIF)-&gt;SetFocus ();
    UpdateData(FALSE);
}
</code></pre>
<p>Wenn ich unter NT eine Datei öffnen möchte, passiert nix (Dialog geht nicht auf). Dies passiert aber nur unter NT. Habe keine Ahnung warum, in der MSDN steht auch nix darüber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30625</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Fri, 20 Jun 2003 05:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Fri, 20 Jun 2003 07:14:00 GMT]]></title><description><![CDATA[<p>Mal geschaut, was in home drinsteht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30626</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Fri, 20 Jun 2003 07:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Fri, 20 Jun 2003 07:18:00 GMT]]></title><description><![CDATA[<p>ich habe bei mir Win2000 drauf. Im Debug steht dann bei mir der Userprofile Pfad drin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30627</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Fri, 20 Jun 2003 07:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Fri, 20 Jun 2003 09:03:00 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p>&gt; kein Kommentar &lt;&lt;&lt;</p>
</blockquote>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/30628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30628</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Fri, 20 Jun 2003 09:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Fri, 20 Jun 2003 09:08:00 GMT]]></title><description><![CDATA[<p>Tut mir Leid verstehe ich nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30629</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Fri, 20 Jun 2003 09:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 07:23:00 GMT]]></title><description><![CDATA[<p>Also ich habe mir mal eine MessageBox mit dem Pfad ausgeben lassen. Dort steht der Pfad richtig drin. Woran könnte es denn noch liegen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30630</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Tue, 24 Jun 2003 07:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 07:37:00 GMT]]></title><description><![CDATA[<p>Ach ja.</p>
<p>Es scheint wirklich am CFileOopen zu liegen. Ich habe auch Standardverzeichnisse angegeben (c:\).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30631</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Tue, 24 Jun 2003 07:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 07:50:00 GMT]]></title><description><![CDATA[<p>Wenn man mal in die MSDN schauen würde ...</p>
<blockquote>
<p>The lpszFilter parameter is used to determine the type of filename a file must have to be displayed in the file list box. The first string in the string pair describes the filter; the second string indicates the file extension to use. Multiple extensions may be specified using ';' as the delimiter. The string ends with two '|' characters, followed by a NULL character. You can also use a CString object for this parameter.</p>
<p>For example, Microsoft Excel permits users to open files with extensions .XLC (chart) or .XLS (worksheet), among others. The filter for Excel could be written as:</p>
<pre><code class="language-cpp">static char BASED_CODE szFilter[] = &quot;Chart Files (*.xlc)|*.xlc|Worksheet Files (*.xls)|*.xls|Data Files (*.xlc;*.xls)|*.xlc; *.xls|All Files (*.*)|*.*||&quot;;
</code></pre>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/30632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30632</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Tue, 24 Jun 2003 07:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 07:53:00 GMT]]></title><description><![CDATA[<p>Ich hatte mal zum Testen alle Parameter auf NULL gesetzt, aber ich hatte das Problem trotzdem. Halt wie gesagt nur unter WIndows NT.</p>
<p>mfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30633</guid><dc:creator><![CDATA[help]]></dc:creator><pubDate>Tue, 24 Jun 2003 07:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 08:17:00 GMT]]></title><description><![CDATA[<p>Habe jetzt auch nochmal das Besispiel aus der MSDN genommen, selbst das funktioniert ja nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30634</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Tue, 24 Jun 2003 08:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to CFileOpen unter NT on Tue, 24 Jun 2003 08:46:00 GMT]]></title><description><![CDATA[<p>Ich habs gefunden:</p>
<blockquote>
<p>CFileDialog m_ldFile(TRUE,&quot;gif&quot;,&quot;*.gif&quot;,OFN_HIDEREADONLY,&quot;Bild-Dateien *.gif&quot;,this);</p>
</blockquote>
<p>SO:</p>
<p>CFileDialog m_ldFile(TRUE,&quot;gif&quot;,&quot;*.gif&quot;,OFN_HIDEREADONLY,&quot;Bild-Dateien <em>.gif&quot;,this</em>*, 0**);</p>
<p>Unter anderen Betriebssystemen braucht man den Parameter anscheinend nicht, nur unter Win NT.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30635</guid><dc:creator><![CDATA[HELP]]></dc:creator><pubDate>Tue, 24 Jun 2003 08:46:00 GMT</pubDate></item></channel></rss>