<?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[Problem mit Timer Callback]]></title><description><![CDATA[<p>Hallo ich habe folgenden Code:</p>
<pre><code class="language-cpp">void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
...mach irgendwas
}

void main()
{

SetTimer(NULL,NULL,1000, (TIMERPROC) myTimerProc);

do
{}
while(1);

}
</code></pre>
<p>Der Timer wird richtig initialisiert da er einen Wert um 32000 zurückgibt.<br />
Allerdings wird die Callback Funktion nie aufgerufen (hab dort nen Breakpoint gesetzt und auch mal ne MsgBox ausgegeben).</p>
<p>Nach msdn und diversen Foren, weiß ich jetzt nicht mehr weiter</p>
<p>Vielen Dank für euere Hilfe</p>
<p>tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/139483/problem-mit-timer-callback</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 15:55:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/139483.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Mar 2006 08:57:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Timer Callback on Tue, 07 Mar 2006 08:57:00 GMT]]></title><description><![CDATA[<p>Hallo ich habe folgenden Code:</p>
<pre><code class="language-cpp">void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
...mach irgendwas
}

void main()
{

SetTimer(NULL,NULL,1000, (TIMERPROC) myTimerProc);

do
{}
while(1);

}
</code></pre>
<p>Der Timer wird richtig initialisiert da er einen Wert um 32000 zurückgibt.<br />
Allerdings wird die Callback Funktion nie aufgerufen (hab dort nen Breakpoint gesetzt und auch mal ne MsgBox ausgegeben).</p>
<p>Nach msdn und diversen Foren, weiß ich jetzt nicht mehr weiter</p>
<p>Vielen Dank für euere Hilfe</p>
<p>tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1010273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1010273</guid><dc:creator><![CDATA[Tobi_Fr]]></dc:creator><pubDate>Tue, 07 Mar 2006 08:57:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Timer Callback on Tue, 07 Mar 2006 09:03:13 GMT]]></title><description><![CDATA[<p>Nimm Sleep oder mach ne Schleife mit GetMessage/DispatchMessage.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1010277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1010277</guid><dc:creator><![CDATA[1000]]></dc:creator><pubDate>Tue, 07 Mar 2006 09:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Timer Callback on Tue, 07 Mar 2006 09:22:10 GMT]]></title><description><![CDATA[<p>Afaik werden Timer-Ereignisse während der normalen Message-Loop abgearbeitet - wenn du die Applikation per &quot;do{}while(1);&quot; auf Eis legst, kann sie nicht mehr reagieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1010295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1010295</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 07 Mar 2006 09:22:10 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Timer Callback on Tue, 07 Mar 2006 09:31:58 GMT]]></title><description><![CDATA[<p>wie könnte ich so eine normale MessageLoop realisieren ?</p>
<p>eine Endlosschleife brauch ich auf jeden Fall!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1010308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1010308</guid><dc:creator><![CDATA[Tobi_Fr]]></dc:creator><pubDate>Tue, 07 Mar 2006 09:31:58 GMT</pubDate></item></channel></rss>