<?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[kleines Timer Problem]]></title><description><![CDATA[<p>Hallo bin noch ziemlich neu beim MFC programmieren.</p>
<p>Will einen einfachen Timer programmieren(FAQs hab ich schon nachgeschaut)</p>
<p>Ich setzte den Timer in der OnCreateMethode von MainFrame. Jetzt möchte ich einfach erreichen, das alle 2 Sekunden ein Piepton abgespielt wird. Ich bin mir sicher, das der Timer erzeugt wird.</p>
<p>Leider funktioniert das nicht, ne Idee was ich falsch mache?</p>
<pre><code class="language-cpp">int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
SetTimer(1, 2000, 0);
	return 0;
}

void CMainFrame::OnTimer(UINT nIDEvent) 
{
   MessageBeep(0xFFFFFFFF);   // Beep

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/65305/kleines-timer-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 06:31:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/65305.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Feb 2004 10:17:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kleines Timer Problem on Wed, 18 Feb 2004 10:17:28 GMT]]></title><description><![CDATA[<p>Hallo bin noch ziemlich neu beim MFC programmieren.</p>
<p>Will einen einfachen Timer programmieren(FAQs hab ich schon nachgeschaut)</p>
<p>Ich setzte den Timer in der OnCreateMethode von MainFrame. Jetzt möchte ich einfach erreichen, das alle 2 Sekunden ein Piepton abgespielt wird. Ich bin mir sicher, das der Timer erzeugt wird.</p>
<p>Leider funktioniert das nicht, ne Idee was ich falsch mache?</p>
<pre><code class="language-cpp">int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
SetTimer(1, 2000, 0);
	return 0;
}

void CMainFrame::OnTimer(UINT nIDEvent) 
{
   MessageBeep(0xFFFFFFFF);   // Beep

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/461874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/461874</guid><dc:creator><![CDATA[mrtrashtalk]]></dc:creator><pubDate>Wed, 18 Feb 2004 10:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Timer Problem on Wed, 18 Feb 2004 10:53:44 GMT]]></title><description><![CDATA[<p>versuch es mal damit!!</p>
<pre><code class="language-cpp">SetTimer(WM_USER+1,1000, NULL);
</code></pre>
<p>Hatte mal das gleiche Problem wie du.<br />
So hat es dann geklappt.<br />
Ich würde sagen es liegt am ersten Parameter.<br />
// handle of window<br />
Der wird nicht stimmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/461902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/461902</guid><dc:creator><![CDATA[haedfinger]]></dc:creator><pubDate>Wed, 18 Feb 2004 10:53:44 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Timer Problem on Wed, 18 Feb 2004 10:55:55 GMT]]></title><description><![CDATA[<p>WM_TIMER in der messagemap vergessen ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/461909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/461909</guid><dc:creator><![CDATA[bbb]]></dc:creator><pubDate>Wed, 18 Feb 2004 10:55:55 GMT</pubDate></item><item><title><![CDATA[Reply to kleines Timer Problem on Wed, 18 Feb 2004 10:59:51 GMT]]></title><description><![CDATA[<p>Danke!!</p>
<p>Ich hab tatsächlich WM_TIMER vergessen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/461915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/461915</guid><dc:creator><![CDATA[mrtrashtalk]]></dc:creator><pubDate>Wed, 18 Feb 2004 10:59:51 GMT</pubDate></item></channel></rss>