<?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[Keine Windows Nachrichten während download]]></title><description><![CDATA[<p>Ich benutze URLDownloadToFile() um Dateie herunter zu laden, dazu habe ich noch eine IBindStatusCallback classe, wordurch ich den download beobachten kann. Damit es bei größeren Dateien nichtlangweilig wird und man nicht denkt das das programm abgeschmiert sei, habe ich noch eine Progress bar eingebaut! Der download läuft einand frei, die Progress bar läuft auch super. Leider schint es so als ob ich einfach keine windows nachrichten empfange, wenn der download an ist! Die maus wird zu dieser Sanduhr und ich kann nichts mehr anklicken! Kennt vieleicht jemand das problem und weiß wie ich dies lösen könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/221720/keine-windows-nachrichten-während-download</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:38:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/221720.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Sep 2008 12:55:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Tue, 02 Sep 2008 12:55:40 GMT]]></title><description><![CDATA[<p>Ich benutze URLDownloadToFile() um Dateie herunter zu laden, dazu habe ich noch eine IBindStatusCallback classe, wordurch ich den download beobachten kann. Damit es bei größeren Dateien nichtlangweilig wird und man nicht denkt das das programm abgeschmiert sei, habe ich noch eine Progress bar eingebaut! Der download läuft einand frei, die Progress bar läuft auch super. Leider schint es so als ob ich einfach keine windows nachrichten empfange, wenn der download an ist! Die maus wird zu dieser Sanduhr und ich kann nichts mehr anklicken! Kennt vieleicht jemand das problem und weiß wie ich dies lösen könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1575302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1575302</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Tue, 02 Sep 2008 12:55:40 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Tue, 02 Sep 2008 14:39:25 GMT]]></title><description><![CDATA[<p>Windowsnachrichten werden nur empfangen, wenn auch Deine Message Loop läuft.<br />
Du benötigst einen Workrthread!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1575404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1575404</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 02 Sep 2008 14:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Tue, 02 Sep 2008 18:56:35 GMT]]></title><description><![CDATA[<p>Was meinst du mit Workthread? Soll ich die Message loop in nen Thread packen, oder wie kann ich das verstehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1575505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1575505</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Tue, 02 Sep 2008 18:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Tue, 02 Sep 2008 19:00:44 GMT]]></title><description><![CDATA[<p>Du mußt einen extra Thread starten der nur den Download behandelt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1575509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1575509</guid><dc:creator><![CDATA[AND | OR]]></dc:creator><pubDate>Tue, 02 Sep 2008 19:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Wed, 03 Sep 2008 21:59:26 GMT]]></title><description><![CDATA[<p>Wenn ich URLDownloadToFile() benutze, wird der Download doch an die DLL weiter gegeben und ich kann dort doch nichts mehr verändern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576161</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Wed, 03 Sep 2008 21:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Wed, 03 Sep 2008 22:03:29 GMT]]></title><description><![CDATA[<p>was is los? dll hat nix mit threads zu tun. <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/1576162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576162</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Wed, 03 Sep 2008 22:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Wed, 03 Sep 2008 22:13:21 GMT]]></title><description><![CDATA[<p>Meine Klasse für den Download sieht folgendr maßen aus:</p>
<pre><code class="language-cpp">class DownloadStatus : public IBindStatusCallback
{
public:

STDMETHODIMP QueryInterface(REFIID riid ,void ** ppv){ return E_NOINTERFACE;}
STDMETHODIMP_(ULONG) AddRef(){ return 0; }
STDMETHODIMP_(ULONG) Release(){ return 0;}
STDMETHODIMP OnStartBinding(DWORD grfBSCOption, IBinding* pbinding){ return 0; }
STDMETHODIMP GetPriority(LONG* pnPriority){ return 0; }
STDMETHODIMP OnLowResource(DWORD dwReserved){ return 0; }
STDMETHOD(OnProgress) (ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText)
{

	SendMessage(hProgress,PBM_SETRANGE32,0,ulProgressMax);

	SendM
essage(hProgress,PBM_SETPOS,ulProgress,ulProgressMax);
sprintf(text, &quot;%.2fMb of %.2fMb\r&quot;, ((float)ulProgress / (1024*1024)), ((float)ulProgressMax / (1024*1024)));
//MessageBox(hWnd, (LPCSTR)szStatusText, &quot;hi&quot;, NULL);
return 0;
}
STDMETHODIMP OnStopBinding(HRESULT hrResult, LPCWSTR szError){ return 0; }
STDMETHODIMP GetBindInfo(DWORD* pgrfBINDF, BINDINFO* pbindinfo){ return 0; }
STDMETHODIMP OnDataAvailable(DWORD grfBSCF, DWORD dwSize, FORMATETC *pfmtetc,STGMEDIUM* pstgmed){ return 0; }
STDMETHODIMP OnObjectAvailable(REFIID riid, IUnknown* punk){ return 0; }
private:
	char text[10000];
	bool bDone;
};
</code></pre>
<p>Meine Progress bar erstelle ich so:</p>
<pre><code class="language-cpp">hProgress = CreateWindowEx(0, PROGRESS_CLASS, NULL,
		               WS_CHILD | WS_VISIBLE| PBS_SMOOTH,
			      10, 20, 680, 17,
			      hWnd, NULL, hInstance, NULL);
</code></pre>
<p>Und den Download rufe ich so auf:</p>
<pre><code class="language-cpp">DownloadStatus cProgress;
	HRESULT hResult = URLDownloadToFile(NULL, &quot;http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.67-win32.zip/from/http://sunsite.informatik.rwth-aachen.de/mysql/&quot;, &quot;haha2.exe&quot;, NULL, &amp;cProgress);
</code></pre>
<p>Ich Frag mich worauf ich dort einen Thread anwenden soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576172</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Wed, 03 Sep 2008 22:13:21 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Wed, 03 Sep 2008 22:16:30 GMT]]></title><description><![CDATA[<p>AND | OR schrieb:</p>
<blockquote>
<p>Du mußt einen extra Thread starten der nur den Download behandelt.</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/en-us/library/ms684841(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms684841(VS.85).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576174</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Wed, 03 Sep 2008 22:16:30 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Wed, 03 Sep 2008 22:24:41 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">DWORD WINAPI DLThread() 
{ 
	DownloadStatus cProgress;
	HRESULT hResult = URLDownloadToFile(NULL, &quot;...&quot;, &quot;...&quot;, NULL, &amp;cProgress);
	return 0;
}
</code></pre>
<p>Dankeschön! Mir fällt gra ein das Funktionen die in einer Funtion sind ja auch von dem Thread betroffen sind xD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576181</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Wed, 03 Sep 2008 22:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Keine Windows Nachrichten während download on Thu, 04 Sep 2008 19:47:14 GMT]]></title><description><![CDATA[<p>Alternativ kannst du auch in der Callback Methode von UrlDownloadToFile deine Nachrichtenschleife abarbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576737</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 04 Sep 2008 19:47:14 GMT</pubDate></item></channel></rss>