<?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[ftpupload]]></title><description><![CDATA[<p>ich würde gerne einen ftp upload aus einen programm starten.<br />
folgenden code habe ich bereits versucht.</p>
<pre><code>void upload()
{

    HINTERNET hOpen, hConnection;
    hOpen = InternetOpen(&quot;FTP Upload&quot;, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
    hConnection = InternetConnect(hOpen, &quot;127.0.0.1&quot;, INTERNET_DEFAULT_FTP_PORT,&quot;Anonymous&quot;, &quot;anonymous&quot;, INTERNET_SERVICE_FTP, 0, 0);
    FtpPutFile(hConnection, &quot;C:\\localfile.exe&quot;, &quot;\\remotefile.exe&quot;,FTP_TRANSFER_TYPE_BINARY, 0);
    InternetCloseHandle(hConnection);
    InternetCloseHandle(hOpen);
}
</code></pre>
<p>das ergebnis: einloggen klappt aber der upload will nicht<br />
was mach ich da falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195692/ftpupload</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 22:42:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195692.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Oct 2007 17:23:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 17:23:50 GMT]]></title><description><![CDATA[<p>ich würde gerne einen ftp upload aus einen programm starten.<br />
folgenden code habe ich bereits versucht.</p>
<pre><code>void upload()
{

    HINTERNET hOpen, hConnection;
    hOpen = InternetOpen(&quot;FTP Upload&quot;, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
    hConnection = InternetConnect(hOpen, &quot;127.0.0.1&quot;, INTERNET_DEFAULT_FTP_PORT,&quot;Anonymous&quot;, &quot;anonymous&quot;, INTERNET_SERVICE_FTP, 0, 0);
    FtpPutFile(hConnection, &quot;C:\\localfile.exe&quot;, &quot;\\remotefile.exe&quot;,FTP_TRANSFER_TYPE_BINARY, 0);
    InternetCloseHandle(hConnection);
    InternetCloseHandle(hOpen);
}
</code></pre>
<p>das ergebnis: einloggen klappt aber der upload will nicht<br />
was mach ich da falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389091</guid><dc:creator><![CDATA[sneear]]></dc:creator><pubDate>Sat, 20 Oct 2007 17:23:50 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 17:49:09 GMT]]></title><description><![CDATA[<p>&quot;will nicht&quot; ist keine ausreichende Fehlerbeschreibung. Werte erstmal GetLastError aus und dann sehen wir weiter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389102</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389102</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 20 Oct 2007 17:49:09 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 17:59:14 GMT]]></title><description><![CDATA[<p>meldung lautet &quot;2&quot;<br />
und der ftp server meldet &quot;The connection was closed by the remote socket&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389105</guid><dc:creator><![CDATA[ftpmeldung]]></dc:creator><pubDate>Sat, 20 Oct 2007 17:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 18:28:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">//
// MessageId: ERROR_FILE_NOT_FOUND
//
// MessageText:
//
//  The system cannot find the file specified.
//
#define ERROR_FILE_NOT_FOUND             2L
</code></pre>
<p>Gibts die Datei &quot;C:\\localfile.exe&quot; auch? Bei mir funzt der Code so.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389118</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 20 Oct 2007 18:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 18:51:48 GMT]]></title><description><![CDATA[<p>sorry war doch meldung &quot;12003&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389131</guid><dc:creator><![CDATA[ftperror]]></dc:creator><pubDate>Sat, 20 Oct 2007 18:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 18:59:34 GMT]]></title><description><![CDATA[<p>InternetGetLastResponseInfo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389137</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 20 Oct 2007 18:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to ftpupload on Sat, 20 Oct 2007 19:01:09 GMT]]></title><description><![CDATA[<p>msdn schrieb:</p>
<blockquote>
<p>ERROR_INTERNET_EXTENDED_ERROR<br />
12003<br />
An extended error was returned from the server. This is typically a string or buffer containing a verbose error message. Call InternetGetLastResponseInfo to retrieve the error text.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1389139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389139</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sat, 20 Oct 2007 19:01:09 GMT</pubDate></item></channel></rss>