<?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[CFtpFileFind , anderes Verzeichnis übergeben ?]]></title><description><![CDATA[<p>Hi, also eine FTP Verbindung zu bekommen ist kein Problem, ich machs so :</p>
<pre><code class="language-cpp">CFtpFileFind finder(pFTPConnection);

	BOOL bWorking = finder.FindFile(&quot;*&quot;);
	while (bWorking)
        {
        bWorking = finder.FindNextFile();
	if(finder.IsDirectory())
	{

	m_List.AddString(finder.GetFileURL());
	}

	CString path;
	path = finder.GetFileURL();
	int nPos = path.ReverseFind('//');
	int nLaenge = path.GetLength()-nPos;
	path.Delete(nPos, nLaenge);
	SetDlgItemText(IDC_EDIT9,path);
}
</code></pre>
<p>Was nun in &quot;path&quot; drin steht ist ein Ordner im FTP Verzeichnis, den ich gerne per Doppelklick öffnen möchte.<br />
Die Nachrichtenbehandlung für den Doppelklick funktioniert, aber ich weiss nicht wie ich nun in den nächsten Ordner rein komm.</p>
<p>Habs so zb versucht :</p>
<pre><code class="language-cpp">void CDatenverwaltungDlg::OnLbnDblclkList2()
{
...
m_List.GetText(m_List.GetCurSel(), help_str);
help_str = help_str + &quot;//&quot;;
CFtpFileFind finder(help_str);  // geht natürlich nicht
...
}
</code></pre>
<p>Irgendwie muss ich doch das nächste Verzeichnis öffnen können, warum geht das nicht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/199537/cftpfilefind-anderes-verzeichnis-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 23:05:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199537.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Dec 2007 09:19:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CFtpFileFind , anderes Verzeichnis übergeben ? on Tue, 04 Dec 2007 09:19:53 GMT]]></title><description><![CDATA[<p>Hi, also eine FTP Verbindung zu bekommen ist kein Problem, ich machs so :</p>
<pre><code class="language-cpp">CFtpFileFind finder(pFTPConnection);

	BOOL bWorking = finder.FindFile(&quot;*&quot;);
	while (bWorking)
        {
        bWorking = finder.FindNextFile();
	if(finder.IsDirectory())
	{

	m_List.AddString(finder.GetFileURL());
	}

	CString path;
	path = finder.GetFileURL();
	int nPos = path.ReverseFind('//');
	int nLaenge = path.GetLength()-nPos;
	path.Delete(nPos, nLaenge);
	SetDlgItemText(IDC_EDIT9,path);
}
</code></pre>
<p>Was nun in &quot;path&quot; drin steht ist ein Ordner im FTP Verzeichnis, den ich gerne per Doppelklick öffnen möchte.<br />
Die Nachrichtenbehandlung für den Doppelklick funktioniert, aber ich weiss nicht wie ich nun in den nächsten Ordner rein komm.</p>
<p>Habs so zb versucht :</p>
<pre><code class="language-cpp">void CDatenverwaltungDlg::OnLbnDblclkList2()
{
...
m_List.GetText(m_List.GetCurSel(), help_str);
help_str = help_str + &quot;//&quot;;
CFtpFileFind finder(help_str);  // geht natürlich nicht
...
}
</code></pre>
<p>Irgendwie muss ich doch das nächste Verzeichnis öffnen können, warum geht das nicht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1414637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1414637</guid><dc:creator><![CDATA[toxor]]></dc:creator><pubDate>Tue, 04 Dec 2007 09:19:53 GMT</pubDate></item><item><title><![CDATA[Reply to CFtpFileFind , anderes Verzeichnis übergeben ? on Tue, 04 Dec 2007 09:31:38 GMT]]></title><description><![CDATA[<p>Habs eben noch so versucht :</p>
<pre><code class="language-cpp">...
help_str = help_str + &quot;/*&quot;;

m_List.Dir(DDL_READWRITE | DDL_HIDDEN | DDL_SYSTEM | DDL_ARCHIVE, help_str);
...
</code></pre>
<p>geht aber auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1414651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1414651</guid><dc:creator><![CDATA[toxor]]></dc:creator><pubDate>Tue, 04 Dec 2007 09:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to CFtpFileFind , anderes Verzeichnis übergeben ? on Tue, 04 Dec 2007 10:56:22 GMT]]></title><description><![CDATA[<p>Also ich habs mittlerweile hinbekommen. Nur noch das Problem wenn ein Ordner zb nicht &quot;Aufgabe4&quot; sondern &quot;Aufgabe 4&quot; heisst. ALso wenn ein Leereichen vorkommt erkennt ers nicht, wie krieg ich das weg ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1414702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1414702</guid><dc:creator><![CDATA[toxor]]></dc:creator><pubDate>Tue, 04 Dec 2007 10:56:22 GMT</pubDate></item></channel></rss>