<?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[probleme mit ftpConnection()]]></title><description><![CDATA[<p>hallo Gleichgesinnte!</p>
<p>Ich habe folgendes Problem mit einer ftpConnection.<br />
Im Prinzip läuft mein Programm aber ich kann mich nur auf einen ftp Server konnekten der auf dem selben rechner liegt.</p>
<p>Wenn ich verusche auf einen ausserhalb zu connecten haut das nicht hin.<br />
Vielleicht hat schon jemand damit Erfahrung und kann mir helfen.</p>
<p>Verwende keine firewall!!</p>
<pre><code class="language-cpp">int tsg_transaction::tsg_open_ftpconnection()
{
    int tsg_error = 0;
    tsg_ftp_control_elem.hInternetSession = ::InternetOpen(
                       &quot;Microsoft Internet Explorer&quot;,   // agent
                        INTERNET_OPEN_TYPE_DIRECT,       // direct access
                        NULL,                            // no proxy server
                        NULL,                           // defaults
                        0);                             // synchronous

    if (tsg_ftp_control_elem.hInternetSession == NULL)
		tsg_error = error_handle.tsg_error(&quot;InternetOpen&quot;);

	return (tsg_error);

}
</code></pre>
<p>herzlichen Dank<br />
l00P</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51469/probleme-mit-ftpconnection</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 15:01:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51469.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Oct 2003 07:59:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to probleme mit ftpConnection() on Fri, 10 Oct 2003 07:59:11 GMT]]></title><description><![CDATA[<p>hallo Gleichgesinnte!</p>
<p>Ich habe folgendes Problem mit einer ftpConnection.<br />
Im Prinzip läuft mein Programm aber ich kann mich nur auf einen ftp Server konnekten der auf dem selben rechner liegt.</p>
<p>Wenn ich verusche auf einen ausserhalb zu connecten haut das nicht hin.<br />
Vielleicht hat schon jemand damit Erfahrung und kann mir helfen.</p>
<p>Verwende keine firewall!!</p>
<pre><code class="language-cpp">int tsg_transaction::tsg_open_ftpconnection()
{
    int tsg_error = 0;
    tsg_ftp_control_elem.hInternetSession = ::InternetOpen(
                       &quot;Microsoft Internet Explorer&quot;,   // agent
                        INTERNET_OPEN_TYPE_DIRECT,       // direct access
                        NULL,                            // no proxy server
                        NULL,                           // defaults
                        0);                             // synchronous

    if (tsg_ftp_control_elem.hInternetSession == NULL)
		tsg_error = error_handle.tsg_error(&quot;InternetOpen&quot;);

	return (tsg_error);

}
</code></pre>
<p>herzlichen Dank<br />
l00P</p>
]]></description><link>https://www.c-plusplus.net/forum/post/369609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369609</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Fri, 10 Oct 2003 07:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Fri, 10 Oct 2003 11:02:35 GMT]]></title><description><![CDATA[<p>das sieht nach WinAPI aus, nciht nach MFC.<br />
Verschoben! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/369746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369746</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Fri, 10 Oct 2003 11:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Fri, 10 Oct 2003 11:46:34 GMT]]></title><description><![CDATA[<p>...ist aber mfc</p>
<p>Bitte um Hilfe...<br />
danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/369787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369787</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Fri, 10 Oct 2003 11:46:34 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Fri, 10 Oct 2003 12:20:16 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CInternetSession* m_pInetSession;
CFtpConnection* m_pFtpConnection;

m_pInetSession = new CInternetSession(&quot;Iternetsession&quot;, 1, PRE_CONFIG_INTERNET_ACCESS);

INTERNET_PORT nPort=21;

m_pFtpConnection = m_pInetSession-&gt;GetFtpConnection(&quot;servernameoderipadresse&quot;,&quot;USERNAME&quot;,&quot;Passwort&quot;,nPort,FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/369842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369842</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Fri, 10 Oct 2003 12:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Mon, 13 Oct 2003 06:26:11 GMT]]></title><description><![CDATA[<p>Danke Tom!</p>
<p>Kannst du mir noch sagen wo denn der Unterschied zu meinem Code liegt? Bzw. warum es mit deinem funkt?</p>
<p>herzlichen Dnak<br />
l00P</p>
]]></description><link>https://www.c-plusplus.net/forum/post/371037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371037</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Mon, 13 Oct 2003 06:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Mon, 13 Oct 2003 06:32:26 GMT]]></title><description><![CDATA[<p>Kann ich nicht da du nicht mehr von deinem Source bekannt gibst.</p>
<p>z.B. Wasn das &quot;tsg_ftp_control_elem&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/371039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371039</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Mon, 13 Oct 2003 06:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to probleme mit ftpConnection() on Mon, 13 Oct 2003 06:39:34 GMT]]></title><description><![CDATA[<p>hilft Dir das weiter?<br />
Ich habe deinen code eingebaut, geht aber immer noch nicht!! Lokal geht!!</p>
<pre><code class="language-cpp">class tsg_transaction  
{
private:
	struct {

	   HINTERNET hInternetSession; 
	   HINTERNET hFTPSession;

    }tsg_ftp_control_elem;   

	int remote_host_type;
	tsg_debug  error_handle;

	int tsg_open_ftpconnection();
	int tsg_ftp_login();
	int tsg_send_file(CString, CString);
	int tsg_get_file(CString remotefile, CString localfile);
	int tsg_ftp_logout();
	int tsg_close_ftpconnection();
	int tsg_change_remote_directory(CString dir);
	CInternetSession* m_pInetSession; 
	CFtpConnection* m_pFtpConnection; 

public:
	int tsg_transaction_get_results_file(CString);
	tsg_transaction();
	virtual ~tsg_transaction();
	int tsg_transaction_process_edf_file(CString filename);	
	int tsg_get_remote_system_type();
	int tsg_validate_remote_dir(CString);

};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/371045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/371045</guid><dc:creator><![CDATA[l00P]]></dc:creator><pubDate>Mon, 13 Oct 2003 06:39:34 GMT</pubDate></item></channel></rss>