<?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]]></title><description><![CDATA[<p>Hi,</p>
<p>könnte irgendjemand hier den Quellcode für einen Timer posten?</p>
<p>Schon mal Danke im Vorraus!</p>
<p>Gruß Crabbe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/48257/timer</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 13:41:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/48257.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Sep 2003 09:40:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 09:40:36 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>könnte irgendjemand hier den Quellcode für einen Timer posten?</p>
<p>Schon mal Danke im Vorraus!</p>
<p>Gruß Crabbe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/348858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/348858</guid><dc:creator><![CDATA[Crabbe]]></dc:creator><pubDate>Sun, 07 Sep 2003 09:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 09:44:01 GMT]]></title><description><![CDATA[<p>Wie Timer? Es gibt verscheidene Codes und Timerarten *gg*</p>
<p>Sowas wie den hier?:</p>
<pre><code>SetTimer(ID_TIMER,250,0);//initialisierung 
SetTimer(IDC_Button_Info,2000,0); 

//dekleration 

void MyDlg::OnTimer(UNIT nIDEVENT) 
{ 
CTime CurTime = CTime::GetCurrentTime(); 

this-&gt;m_Zeit=CurTime.Format(&quot;%H:%M:%S&quot;) 
this-&gt;UpdateData(FALSE) 

KillTimer(0); 

}
</code></pre>
<p>mfg<br />
Pro</p>
<p>PS: sieh FAQ!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/348861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/348861</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Sun, 07 Sep 2003 09:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 10:08:32 GMT]]></title><description><![CDATA[<p><a href="http://www.mut.de/media_remote/buecher/VCPLUS6/data/kap04.htm" rel="nofollow">http://www.mut.de/media_remote/buecher/VCPLUS6/data/kap04.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/348873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/348873</guid><dc:creator><![CDATA[Noodles]]></dc:creator><pubDate>Sun, 07 Sep 2003 10:08:32 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 10:20:04 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5474">@Dominic</a>: Hey!!!! Du heisst genau gleich wie ich! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/348875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/348875</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Sun, 07 Sep 2003 10:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 17:58:55 GMT]]></title><description><![CDATA[<p>Danke für die Antworten.<br />
Ich suche einen Timer mit dem man eine Zeit eingeben kann(also im<br />
Quellcode) und dass dann nach dieser Zeit eine bestimmte Aktion<br />
erfolgt. Ist dies mit dem oben aufgeführten Quellcode möglich?<br />
(Ich habe im Moment keine Zeit dies aus zu probieren.) <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="😞"
    /></p>
<p>Gruß Crabbe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/349084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/349084</guid><dc:creator><![CDATA[Crabbe]]></dc:creator><pubDate>Sun, 07 Sep 2003 17:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Sun, 07 Sep 2003 20:49:14 GMT]]></title><description><![CDATA[<p>ja, das ist möglich:</p>
<p>du musst einfach die Timer-Zeit auf die Zeit einstellen, nach der die Aktion ausgeführt werden soll.<br />
Allerdings musst du wenn die Aktion ausgeführt wurde, den Timer wieder killen</p>
<pre><code>SetTimer(ID_TIMER, 2000, NULL);  // Timer wird nach 2 Sek ausgelöst

void MyDlg::OnTimer(UINT nIDEvent)
{
  if (nIDEvent == ID_TIMER)
  {
    // Aktion ausführen

    KillTimer(ID_TIMER);
  }
}
</code></pre>
<p>Hier wird die Aktion einmal nach einer bestimmten Zeit ausgeführt.<br />
Wenn die Aktion immer wieder nach einer Zeit ausgeführt werden soll, dann musst du einfach das 'KillTimer()' hier weglassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/349173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/349173</guid><dc:creator><![CDATA[Dommel]]></dc:creator><pubDate>Sun, 07 Sep 2003 20:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Mon, 08 Sep 2003 14:27:50 GMT]]></title><description><![CDATA[<p>Danke für die Antwort!<br />
Ich werd's gleich mal ausprobieren!</p>
<p>Gruß Crabbe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/349673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/349673</guid><dc:creator><![CDATA[crabbe()]]></dc:creator><pubDate>Mon, 08 Sep 2003 14:27:50 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Mon, 08 Sep 2003 16:52:11 GMT]]></title><description><![CDATA[<p>Ok, ich habe den Timer jetzt in einen Quellcode eingebunden, aber beim Kompilieren kommt immer der Fehler &quot;ID_TIMER nicht deklariert&quot;.<br />
Ich habe schon hiermit versucht ID_TIMER zu deklarieren:</p>
<p>class MyDlg : public CFrameWnd { //mit welcher Klasse muss ich MyDlg vererben?<br />
public:<br />
OnTimer()<br />
};</p>
<p>Dies hat allerdings nicht funktioniert.<br />
Könntet ihr mir vielleicht helfen?</p>
<p>Gruß Crabbe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/349782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/349782</guid><dc:creator><![CDATA[Crabbe()]]></dc:creator><pubDate>Mon, 08 Sep 2003 16:52:11 GMT</pubDate></item><item><title><![CDATA[Reply to Timer on Mon, 08 Sep 2003 17:06:53 GMT]]></title><description><![CDATA[<p>Arbeitsbereich-Fenster -&gt; Ressourcen-Tab -&gt; Rechtsklick auf 'DeinProg Ressourcen' (ganz oben) -&gt; Ressourcensymbole ... -&gt; Neu ...</p>
<pre><code>Name: ID_TIMER
Wert: 1      &lt;- Möglichst einen Wert eingeben, der noch nicht benutzt wird.
</code></pre>
<p>Dann sollte es gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/349793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/349793</guid><dc:creator><![CDATA[Mr. IfThen]]></dc:creator><pubDate>Mon, 08 Sep 2003 17:06:53 GMT</pubDate></item></channel></rss>