<?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[FTP problem :(]]></title><description><![CDATA[<p>Hi,</p>
<p>ich will mich etwas mit FTP auseinandersetzen, doch bei FtpSetCurrentDirectory geht einfahc nichts mehr <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>
<p>Verbinden tut er, Connecten ebenfalls aber ich komme nicht auf den Root-Ordner <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>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &lt;wininet.h&gt; 
#include &lt;iostream&gt; 

#pragma comment(lib, &quot;wininet.lib&quot;)

int main (void) 
{ 
    // INTERNET CONNECTION ÖFFNEN! ########################
    HINTERNET connection = NULL;

    connection = InternetOpen (&quot;Anwendungsname&quot;, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_ASYNC);

    if (connection != NULL)
        std::cout &lt;&lt; &quot;Verbindung hergestellt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;Verbindung konnte nicht hergestellt werden!&quot; &lt;&lt; std::endl;

    // FTP CONNECTION ÖFFNEN! #############################
    HINTERNET ftp = NULL;

    ftp = InternetConnect (connection, &quot;xxx&quot;, 21, &quot;xxx&quot;, &quot;xxx&quot;, 1, 0, 0);

    if (ftp != NULL)
        std::cout &lt;&lt; &quot;FTP-Verbindung hergestellt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;FTP-Verbindung konnte nicht hergestellt werden!&quot; &lt;&lt; std::endl;

    // FTP kram
    if (FtpSetCurrentDirectory (connection, &quot;/&quot;))
        std::cout &lt;&lt; &quot;FTP-Ordner gesetzt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;FTP-Ordner konnte nicht gesetzt werden!&quot; &lt;&lt; std::endl;

    return 0; 
}
</code></pre>
<p>Zugangsdaten wurden natürlich geändert!</p>
<p>Weiß jemand weiter?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/115381/ftp-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 17:51:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/115381.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Jul 2005 19:38:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 19:38:05 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich will mich etwas mit FTP auseinandersetzen, doch bei FtpSetCurrentDirectory geht einfahc nichts mehr <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>
<p>Verbinden tut er, Connecten ebenfalls aber ich komme nicht auf den Root-Ordner <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>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &lt;wininet.h&gt; 
#include &lt;iostream&gt; 

#pragma comment(lib, &quot;wininet.lib&quot;)

int main (void) 
{ 
    // INTERNET CONNECTION ÖFFNEN! ########################
    HINTERNET connection = NULL;

    connection = InternetOpen (&quot;Anwendungsname&quot;, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_ASYNC);

    if (connection != NULL)
        std::cout &lt;&lt; &quot;Verbindung hergestellt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;Verbindung konnte nicht hergestellt werden!&quot; &lt;&lt; std::endl;

    // FTP CONNECTION ÖFFNEN! #############################
    HINTERNET ftp = NULL;

    ftp = InternetConnect (connection, &quot;xxx&quot;, 21, &quot;xxx&quot;, &quot;xxx&quot;, 1, 0, 0);

    if (ftp != NULL)
        std::cout &lt;&lt; &quot;FTP-Verbindung hergestellt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;FTP-Verbindung konnte nicht hergestellt werden!&quot; &lt;&lt; std::endl;

    // FTP kram
    if (FtpSetCurrentDirectory (connection, &quot;/&quot;))
        std::cout &lt;&lt; &quot;FTP-Ordner gesetzt&quot; &lt;&lt; std::endl;
    else 
        std::cout &lt;&lt; &quot;FTP-Ordner konnte nicht gesetzt werden!&quot; &lt;&lt; std::endl;

    return 0; 
}
</code></pre>
<p>Zugangsdaten wurden natürlich geändert!</p>
<p>Weiß jemand weiter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/830654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830654</guid><dc:creator><![CDATA[&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;]]></dc:creator><pubDate>Wed, 13 Jul 2005 19:38:05 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 19:50:46 GMT]]></title><description><![CDATA[<p>sollte es nicht ftp sein</p>
<pre><code class="language-cpp">FtpSetCurrentDirectory(ftp, &quot;/&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/830672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830672</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 13 Jul 2005 19:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 19:56:52 GMT]]></title><description><![CDATA[<p>hab das connection durch ftp ersetzt, es kommt einfach nix <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/830684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830684</guid><dc:creator><![CDATA[&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;]]></dc:creator><pubDate>Wed, 13 Jul 2005 19:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 19:57:51 GMT]]></title><description><![CDATA[<p>was sagt<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetgetlastresponseinfo.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetgetlastresponseinfo.asp</a><br />
dazu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/830687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830687</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 13 Jul 2005 19:57:51 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 20:01:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char buffer[512];
    DWORD xxx = 512;
    InternetGetLastResponseInfo (NULL, buffer, &amp;xxx);
    std::cout &lt;&lt; buffer &lt;&lt; std::endl;
</code></pre>
<p>spuckt nix aus <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/830692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830692</guid><dc:creator><![CDATA[&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;]]></dc:creator><pubDate>Wed, 13 Jul 2005 20:01:33 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Wed, 13 Jul 2005 20:08:20 GMT]]></title><description><![CDATA[<p>Hab jetzt mal diese Funktion aus der MSDN dahinter aufgerufen:</p>
<pre><code class="language-cpp">void ErrorExit(LPTSTR lpszFunction) 
{ 
    TCHAR szBuf[80]; 
    LPVOID lpMsgBuf;
    DWORD dw = GetLastError(); 

    FormatMessage(
        FORMAT_MESSAGE_ALLOCATE_BUFFER | 
        FORMAT_MESSAGE_FROM_SYSTEM,
        NULL,
        dw,
        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
        (LPTSTR) &amp;lpMsgBuf,
        0, NULL );

    wsprintf(szBuf, 
        &quot;%s failed with error %d: %s&quot;, 
        lpszFunction, dw, lpMsgBuf); 

    MessageBox(NULL, szBuf, &quot;Error&quot;, MB_OK); 

    LocalFree(lpMsgBuf);
    ExitProcess(dw); 
}
</code></pre>
<p>Der sagt mir<br />
&quot;997: Überlappender E/A-Vorgang wird verarbeitet&quot;?????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/830704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/830704</guid><dc:creator><![CDATA[&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;&#x27;]]></dc:creator><pubDate>Wed, 13 Jul 2005 20:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to FTP problem :( on Sun, 17 Jul 2005 16:15:37 GMT]]></title><description><![CDATA[<p>Probier mal anstelle von INTERNET_FLAG_ASYNC den Wert 0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/832932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/832932</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Sun, 17 Jul 2005 16:15:37 GMT</pubDate></item></channel></rss>