<?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[Krys]]></title><description><![CDATA[<p>Hallo alle zusammen!</p>
<p>Bevor ich anfange zu programmieren, wollte ich noch nach einer Möglichkeit fragen. Ich habe ein bestimmtes Zeitinterval (z.B.: von 0 bis 60 sek.) und will einem Bestimmren Zeitpunkt aus diesem Intervall ein Ereignis zuordnen. Es soll beispielweise bei 32,12 sek. etwas passieren! Muss ich mir ein Clock bauen, den ich ständig frage, ob schon die Zeit aufgetretten ist oder gibt es da eine bessere Möglichkeiten.<br />
Für eure Hinweise bin ich sehr froh.</p>
<p>Gruß, Krys</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/50626/krys</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 07:29:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/50626.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Oct 2003 14:32:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Krys on Wed, 01 Oct 2003 14:32:19 GMT]]></title><description><![CDATA[<p>Hallo alle zusammen!</p>
<p>Bevor ich anfange zu programmieren, wollte ich noch nach einer Möglichkeit fragen. Ich habe ein bestimmtes Zeitinterval (z.B.: von 0 bis 60 sek.) und will einem Bestimmren Zeitpunkt aus diesem Intervall ein Ereignis zuordnen. Es soll beispielweise bei 32,12 sek. etwas passieren! Muss ich mir ein Clock bauen, den ich ständig frage, ob schon die Zeit aufgetretten ist oder gibt es da eine bessere Möglichkeiten.<br />
Für eure Hinweise bin ich sehr froh.</p>
<p>Gruß, Krys</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364384</guid><dc:creator><![CDATA[Krys]]></dc:creator><pubDate>Wed, 01 Oct 2003 14:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Wed, 01 Oct 2003 15:44:46 GMT]]></title><description><![CDATA[<p>Du brauchst einen Timer, der Dir nach dieser Zeit (32120 ms) eine Nachricht schickt.</p>
<pre><code class="language-cpp">void XXX::OnStart() 
{ 
    SetTimer( 1, 32120, NULL); // Zeitgeber namens ID 1 starten, Zeitintervall: 0,5 Sekunden 
}

void XXX::OnTimer(UINT nIDEvent) 
{ 
    // Deine Aktion
    XXX::OnTimer(nIDEvent); 
}
</code></pre>
<p>Du kannst auch den Parameter nIDEvent mit switch/case auswerten, falls Du mehrere Timer brauchst.</p>
<p>Beispiel:<br />
<a href="http://www.henkessoft.de/mfc_einsteigerbuch_kapitel2.htm" rel="nofollow">http://www.henkessoft.de/mfc_einsteigerbuch_kapitel2.htm</a> (Abschnitt 2.2)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364466</guid><dc:creator><![CDATA[..]]></dc:creator><pubDate>Wed, 01 Oct 2003 15:44:46 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Wed, 01 Oct 2003 15:46:12 GMT]]></title><description><![CDATA[<p>Zeitintervall ist 32120 ms = 32,1 s.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364468</guid><dc:creator><![CDATA[..]]></dc:creator><pubDate>Wed, 01 Oct 2003 15:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Wed, 01 Oct 2003 19:20:44 GMT]]></title><description><![CDATA[<p>Achtung!</p>
<p>Die Zeit ist aber nicht &quot;genau&quot;. Für Nutzerinterface usw. reicht das allemal, aber du kannst dich halt nicht drauf verlassen.</p>
<p>Solange du im Windows im User-Mode bleibts, ist da auch nicht viel zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364624</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Wed, 01 Oct 2003 19:20:44 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Thu, 02 Oct 2003 06:08:37 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Danke für eure Antworten! Die Möglichkeit mit dem Timer war mir bekannt, und funktioniert auch. Ich habe aber mehrere Ereignisse, die in unrägelmässigen Zeitabständen auftreten können. Innerhalb einer Minute können es 3 aber auch 30 Ereignisse (sie sind auch unterschiedlich) aufträten. Ich muss doch nicht mir 30 Timer bauen und jedem ein bestimmtes Ereignis zuordnen? Nicht wahr?<br />
Gruß, Krys</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364703</guid><dc:creator><![CDATA[Krys]]></dc:creator><pubDate>Thu, 02 Oct 2003 06:08:37 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Thu, 02 Oct 2003 08:32:16 GMT]]></title><description><![CDATA[<p>Wie gesagt kannst du mehrere Timer starten und denen eine ID mitgeben. Bei OnTimer erhälst du den Parameter nIDEvent und weißt welche Aktion du ausführen musst... <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/364793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364793</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 02 Oct 2003 08:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Thu, 02 Oct 2003 09:32:57 GMT]]></title><description><![CDATA[<p>D.h. wenn ich 150 Ereignisse habe, muss ich auch 150 Timer bauen ??? Das muss doch anders gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364850</guid><dc:creator><![CDATA[Krys]]></dc:creator><pubDate>Thu, 02 Oct 2003 09:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Thu, 02 Oct 2003 10:08:52 GMT]]></title><description><![CDATA[<p>Selten so eine schöne Standardbibliothek gesehen, die so gut zu einem Problem paßt!<br />
Wo ist das problem ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364887</guid><dc:creator><![CDATA[sarasne]]></dc:creator><pubDate>Thu, 02 Oct 2003 10:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to Krys on Thu, 02 Oct 2003 22:08:39 GMT]]></title><description><![CDATA[<p>1 Nimm zum Begin dieser Zeitsequenz den aktuellen Wert des QueryPerformanceCounter(&amp;start);<br />
2 Setze für die erste Zeit wie beschreiben einen Timer auf.<br />
3 Wenn der abgelaufen ist hole mit QueryPerformanceCounter(&amp;now) die aktuelle Zeit<br />
4 Berechne die deltaZeit zum nächsten Event mit dem Ergebnis des Counters<br />
5 setze den Timer auf mit dieser deltazeit.<br />
6 Wiederhole 3..5 solange bis die Timingliste abgearbeitet ist.</p>
<p>Das klingt im ersten Moment etwas kompliziert, aber daddurch das ich mich immer auf die STartzeit beziehe, ist der Fehler<br />
jedes einzel erignisses gleichgroß. Würde ich nur mit der deltaueit aus der liste und einem Timer arbeiten würden sich die<br />
Einzelfehler kumulieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/365269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/365269</guid><dc:creator><![CDATA[PAD]]></dc:creator><pubDate>Thu, 02 Oct 2003 22:08:39 GMT</pubDate></item></channel></rss>