<?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[Multiselect funktioniert nur bis 6]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe folgendes Problem... Ich habe ein Dateiauswahlfeld (welches eine Mehrfachauswahl erlaubt) wenn ich jedoch mehr als 6 Dateien auswähle passiert nichts! Das ganze ist noch in VS6 geschrieben. Wird jedoch auf VS 2003 poritert. Woran liegt das Problem??</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">CFileDialog cfd(TRUE , &quot;&quot; , NULL, OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT  , &quot;Alle Files(*.*)|*.*|&quot; , NULL); 	
    if(cfd.DoModal() == IDOK ) 
    { 
		POSITION nDatei;
		nDatei=cfd.GetStartPosition();

		do
		{
			szDatei=cfd.GetNextPathName(nDatei);
		}
    }
</code></pre>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181602/multiselect-funktioniert-nur-bis-6</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 20:03:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181602.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 May 2007 13:56:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Wed, 16 May 2007 05:41:02 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe folgendes Problem... Ich habe ein Dateiauswahlfeld (welches eine Mehrfachauswahl erlaubt) wenn ich jedoch mehr als 6 Dateien auswähle passiert nichts! Das ganze ist noch in VS6 geschrieben. Wird jedoch auf VS 2003 poritert. Woran liegt das Problem??</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">CFileDialog cfd(TRUE , &quot;&quot; , NULL, OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT  , &quot;Alle Files(*.*)|*.*|&quot; , NULL); 	
    if(cfd.DoModal() == IDOK ) 
    { 
		POSITION nDatei;
		nDatei=cfd.GetStartPosition();

		do
		{
			szDatei=cfd.GetNextPathName(nDatei);
		}
    }
</code></pre>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285409</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Wed, 16 May 2007 05:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Tue, 15 May 2007 14:29:20 GMT]]></title><description><![CDATA[<p>Dein Quellcode enthält Fehler. Bitte poste den Quellcode hier, den du auch kompilieren kannst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285443</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Tue, 15 May 2007 14:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Wed, 16 May 2007 05:46:24 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CFileDialog cfd(TRUE , &quot;&quot; , NULL, OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT  , &quot;Alle Files(*.*)|*.*|&quot; , NULL);     
    if(cfd.DoModal() == IDOK ) 
    { 
        POSITION nDatei; 
        nDatei=cfd.GetStartPosition(); 

        do 
        { 
            szDatei=cfd.GetNextPathName(nDatei); 
        } 
        while(nDatei);
    }
</code></pre>
<p>Die ganze Funktion kann ich nicht posten, da darin in sehr viele Funktionen verwiesen wird...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285841</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Wed, 16 May 2007 05:46:24 GMT</pubDate></item><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Wed, 16 May 2007 07:40:05 GMT]]></title><description><![CDATA[<p>Das Problem ist bei Design.<br />
m_ofn.nMaxFile und m_ofn.lpstrFile musst Du größer bereitstellen.<br />
Standardmässig wird hier IMHO nur _MAX_PATH allokiert.</p>
<p>Das ganze ist komplett in der Doku in der MSDN it Beispiel beschrieben:</p>
<pre><code class="language-cpp">CFileDialog dlgFile(...);
...
CString fileName;
dlgFile.GetOFN().lpstrFile = fileName.GetBuffer(&lt;very large number&gt;);
dlgFile.GetOFN().nMaxFile = &lt;very large number&gt;;

INT_PTR nResult = dlgFile.DoModal();
fileName.ReleaseBuffer();
</code></pre>
<p><a href="http://msdn2.microsoft.com/en-us/library/dk77e5e7(VS.80).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/dk77e5e7(VS.80).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285898</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 16 May 2007 07:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Wed, 16 May 2007 07:41:51 GMT]]></title><description><![CDATA[<p>Und wie genau äußert sich das Problem jetzt?</p>
<p>(Ich würde ja vermuten, daß der Dialog einfach zu wenig Platz hatte, alle Dateinamen unterzubringen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285901</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 16 May 2007 07:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Multiselect funktioniert nur bis 6 on Wed, 16 May 2007 08:28:35 GMT]]></title><description><![CDATA[<p>Danke!<br />
Nun funktioniert das Ganze!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285931</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Wed, 16 May 2007 08:28:35 GMT</pubDate></item></channel></rss>