<?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[timer mit einem 5 sekunden interval]]></title><description><![CDATA[<p>Hallo ich brauche für meine consolleapplication einen timer, der alle 2min etw. macht.</p>
<p>Ich habe mir bereits mehere bsps gegooglet, jedoch hat keines bei mir gefunzt.<br />
<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="😞"
    /><br />
als compiler nutze ich mingw.</p>
<p>Vielen Dank schonmal im Vorraus.</p>
<p>Mfg cpp-newb</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163071/timer-mit-einem-5-sekunden-interval</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 17:50:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163071.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Oct 2006 17:59:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Wed, 25 Oct 2006 17:59:52 GMT]]></title><description><![CDATA[<p>Hallo ich brauche für meine consolleapplication einen timer, der alle 2min etw. macht.</p>
<p>Ich habe mir bereits mehere bsps gegooglet, jedoch hat keines bei mir gefunzt.<br />
<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="😞"
    /><br />
als compiler nutze ich mingw.</p>
<p>Vielen Dank schonmal im Vorraus.</p>
<p>Mfg cpp-newb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161226</guid><dc:creator><![CDATA[cpp-newb]]></dc:creator><pubDate>Wed, 25 Oct 2006 17:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Wed, 25 Oct 2006 18:18:15 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161253</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 25 Oct 2006 18:18:15 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Wed, 25 Oct 2006 18:39:44 GMT]]></title><description><![CDATA[<p>Hm da du keine WndProc hast, erstell einfach n Multimedia Timer mit <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="➡"
    /> <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_timesetevent.asp" rel="nofollow">timeSetEvent</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161296</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Wed, 25 Oct 2006 18:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Thu, 26 Oct 2006 11:05:51 GMT]]></title><description><![CDATA[<p>kannste mir mal bitte ein beispiel schreiben?<br />
ich blick da nicht so durch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161813</guid><dc:creator><![CDATA[cpp-newb]]></dc:creator><pubDate>Thu, 26 Oct 2006 11:05:51 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Sun, 29 Oct 2006 20:51:19 GMT]]></title><description><![CDATA[<p>bitte mach das!<br />
ich werd daraus einfach nicht schlau.</p>
<p>nur ganz kurz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164069</guid><dc:creator><![CDATA[cpp-newb]]></dc:creator><pubDate>Sun, 29 Oct 2006 20:51:19 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Sun, 29 Oct 2006 21:04:39 GMT]]></title><description><![CDATA[<p>ich zitier mal aus der MSDN:</p>
<pre><code class="language-cpp">#define TARGET_RESOLUTION 1         // 1-millisecond target resolution

UINT GetTimerRes(void)
{
    TIMECAPS tc;

    if (timeGetDevCaps(&amp;tc, sizeof(TIMECAPS)) != TIMERR_NOERROR) 
        return 0;

    UINT nTimerRes = min(max(tc.wPeriodMin, TARGET_RESOLUTION), tc.wPeriodMax);
    timeBeginPeriod(nTimerRes);
    return nTimerRes;
}

void CALLBACK OnTimer(UINT nTimerID, UINT nMessage, DWORD dwUser, DWORD dw1, DWORD dw2) 
{ 
    NPSEQ npSeq;             // pointer to sequencer data 
    npSeq = (NPSEQ)dwUser;
    npSeq-&gt;wTimerID = 0;     // invalidate timer ID (no longer in use)
    TimerRoutine(npSeq);     // handle tasks 
}

UINT SetTimerCallback(NPSEQ npSeq, UINT msInterval)
{ 
    npSeq-&gt;wTimerID = timeSetEvent(msInterval, GetTimerRes(), OnTimer, (DWORD)npSeq, TIME_PERIODIC); 

    return (!npSeq-&gt;wTimerID ? ERR_TIMER : ERR_NOERROR);
}
</code></pre>
<p><strong>Referenz</strong><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_using_multimedia_timers.asp" rel="nofollow">Using Multimedia Timers</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164076</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 29 Oct 2006 21:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Sun, 29 Oct 2006 21:21:18 GMT]]></title><description><![CDATA[<p>danke danke</p>
<p>wo kommt der code rein, der alle 5min wiederholt werden soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164080</guid><dc:creator><![CDATA[cpp-newb]]></dc:creator><pubDate>Sun, 29 Oct 2006 21:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Mon, 30 Oct 2006 13:23:26 GMT]]></title><description><![CDATA[<p>Welcher Funktionsname ist da wophl am vielversprechensten:<br />
- GetTimerRes<br />
- OnTimer oder<br />
- SetTimerCallback?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164454</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Mon, 30 Oct 2006 13:23:26 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Mon, 30 Oct 2006 14:44:29 GMT]]></title><description><![CDATA[<p>setimercallback........ ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164533</guid><dc:creator><![CDATA[cpp-newb]]></dc:creator><pubDate>Mon, 30 Oct 2006 14:44:29 GMT</pubDate></item><item><title><![CDATA[Reply to timer mit einem 5 sekunden interval on Mon, 30 Oct 2006 16:53:07 GMT]]></title><description><![CDATA[<p>SetTimerCallback(NPSEQ npSeq, UINT msInterval) wird wohl am ehesten den Timer setzen(set) bzw. starten.<br />
OnTimer, wird wohl das sein was ausgeführt wird(musst halt bei SetTimerCallback das richtige Intervall setzen...<br />
GetTimerRes(void), wird nur für SetTimerCallback gebraucht ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164708</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164708</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Mon, 30 Oct 2006 16:53:07 GMT</pubDate></item></channel></rss>