<?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[Dateiauswahl]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>weiß jemand zufällig wie ich in einem Dateiauswahldialog den zuletzt aufgerufenen Ordner/Verzeichnis beim erneuten starten gleich angezeigt bekomme????</p>
<pre><code class="language-cpp">CString strpathname;
    TCHAR cFileNames[1024]; 
    memset(cFileNames,0,sizeof(cFileNames)); 
    CFileDialog fileDialog(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT,(&quot;CPA-ErgebnisDatei (*.han)|*.han|&quot;)); 

    fileDialog.m_ofn.lpstrFile = (LPSTR)cFileNames; 
    fileDialog.m_ofn.nMaxFile  = sizeof(cFileNames);

    if (fileDialog.DoModal() == IDOK) 
    { 
        int size = 0;
        GetFiles(cFileNames); 
        size = m_str_arrList.GetSize();
        if ( size == 1 ) 
        {   
            strpathname = fileDialog.GetPathName();
            StartLoadData(m_str_arrList.GetAt(0),strpathname);
        }
        else
        {
            for(int i=1; i&lt;m_str_arrList.GetSize(); i++) 
            {              
                strpathname = fileDialog.GetPathName();
                StartLoadData(m_str_arrList.GetAt(i),strpathname);
            }
        }
    }
</code></pre>
<p>DANKE! :p</p>
<p>MfG<br />
RunSeb</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79788/dateiauswahl</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 22:16:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79788.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jul 2004 13:54:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dateiauswahl on Wed, 14 Jul 2004 13:54:56 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>weiß jemand zufällig wie ich in einem Dateiauswahldialog den zuletzt aufgerufenen Ordner/Verzeichnis beim erneuten starten gleich angezeigt bekomme????</p>
<pre><code class="language-cpp">CString strpathname;
    TCHAR cFileNames[1024]; 
    memset(cFileNames,0,sizeof(cFileNames)); 
    CFileDialog fileDialog(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT,(&quot;CPA-ErgebnisDatei (*.han)|*.han|&quot;)); 

    fileDialog.m_ofn.lpstrFile = (LPSTR)cFileNames; 
    fileDialog.m_ofn.nMaxFile  = sizeof(cFileNames);

    if (fileDialog.DoModal() == IDOK) 
    { 
        int size = 0;
        GetFiles(cFileNames); 
        size = m_str_arrList.GetSize();
        if ( size == 1 ) 
        {   
            strpathname = fileDialog.GetPathName();
            StartLoadData(m_str_arrList.GetAt(0),strpathname);
        }
        else
        {
            for(int i=1; i&lt;m_str_arrList.GetSize(); i++) 
            {              
                strpathname = fileDialog.GetPathName();
                StartLoadData(m_str_arrList.GetAt(i),strpathname);
            }
        }
    }
</code></pre>
<p>DANKE! :p</p>
<p>MfG<br />
RunSeb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/560516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/560516</guid><dc:creator><![CDATA[RunSeb]]></dc:creator><pubDate>Wed, 14 Jul 2004 13:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiauswahl on Wed, 14 Jul 2004 14:03:02 GMT]]></title><description><![CDATA[<p>Ich weiss spontan nicht wie es geht und auch ein Blick in die MSDN sagt mir das es dafür keine fertige Funktion gibt (so ich sie nicht übersehen habe)...</p>
<p>Im zweifel würd ich ne klasse von CFileDialog ableiten und dann da was basteln, das geht dann immer irgendwie...OnInitDialog müsstest du z.b. überladen können...</p>
<p>das ableiten übernimmt in dem fall sogar der klassenassi für dich, musst nur eine neue klasse erstellen und anklicken von cfileDialog ableiten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/560529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/560529</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Wed, 14 Jul 2004 14:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiauswahl on Wed, 14 Jul 2004 14:46:25 GMT]]></title><description><![CDATA[<p>MMh sofern mich kein Pferd krault, hab ich auch nichts gefunden.</p>
<p>Überlege ich mir morgen mal genauer.</p>
<p>Danke aber trotzdem, das ist nämlich schon mal der Ansazt.<br />
Aber Steine Meiseln kann ich damit leider noch nicht.</p>
<p>Mfg<br />
RunSeb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/560588</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/560588</guid><dc:creator><![CDATA[RunSeb]]></dc:creator><pubDate>Wed, 14 Jul 2004 14:46:25 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiauswahl on Wed, 14 Jul 2004 20:02:23 GMT]]></title><description><![CDATA[<p>Hi,<br />
wenn ich das richtig Verstanden habe, dann versuchs mal damit...</p>
<pre><code>fileDlg.m_ofn.lpstrInitialDir = &quot;C:\\&quot;;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/560881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/560881</guid><dc:creator><![CDATA[2oopuls]]></dc:creator><pubDate>Wed, 14 Jul 2004 20:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiauswahl on Thu, 15 Jul 2004 08:58:03 GMT]]></title><description><![CDATA[<p>Oh ja, herzlichen Dank!</p>
<p>Hat mir sehr geholfen! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>MfG<br />
RunSeb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561125</guid><dc:creator><![CDATA[RunSeb]]></dc:creator><pubDate>Thu, 15 Jul 2004 08:58:03 GMT</pubDate></item></channel></rss>