<?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[HILFE! PlaySound() funktioniert nicht]]></title><description><![CDATA[<p>Hi Leute!<br />
Ich brauche dringend eure Hilfe!<br />
Ich sitze gerade an einem WinApi Projekt und versuche vergeblichst,<br />
folgende PlaySound - Funktion durch den Compiler zu jagen:</p>
<pre><code>PlaySound(&quot;SystemStart&quot;, NULL, SND_SYNC);
</code></pre>
<p>Wäre euch super dankbar, wenn ihr mir weiterhelft!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/63872/hilfe-playsound-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 08:42:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/63872.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Feb 2004 14:12:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 14:12:41 GMT]]></title><description><![CDATA[<p>Hi Leute!<br />
Ich brauche dringend eure Hilfe!<br />
Ich sitze gerade an einem WinApi Projekt und versuche vergeblichst,<br />
folgende PlaySound - Funktion durch den Compiler zu jagen:</p>
<pre><code>PlaySound(&quot;SystemStart&quot;, NULL, SND_SYNC);
</code></pre>
<p>Wäre euch super dankbar, wenn ihr mir weiterhelft!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452513</guid><dc:creator><![CDATA[playsound]]></dc:creator><pubDate>Thu, 05 Feb 2004 14:12:41 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 14:26:32 GMT]]></title><description><![CDATA[<p>Gib mal noch SND_ALIAS im 3. Parameter mit an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452523</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 05 Feb 2004 14:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 14:57:36 GMT]]></title><description><![CDATA[<p>Funktioniert leider auch nicht - die Fehlermeldung lautet:</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'PlaySound' : nichtdeklarierter Bezeichner</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'SND_SYNC' : nichtdeklarierter Bezeichner</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'SND_ALIAS' : nichtdeklarierter Bezeichner</p>
<p>Insgesammt sieht die c-Plusplus Datei so aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;windows.h&gt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow )
{
	PlaySound(&quot;SystemStart&quot;, NULL, SND_SYNC | SND_ALIAS);
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/452554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452554</guid><dc:creator><![CDATA[playsound]]></dc:creator><pubDate>Thu, 05 Feb 2004 14:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 16:25:53 GMT]]></title><description><![CDATA[<p>playsound schrieb:</p>
<blockquote>
<p>Funktioniert leider auch nicht - die Fehlermeldung lautet:</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'PlaySound' : nichtdeklarierter Bezeichner</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'SND_SYNC' : nichtdeklarierter Bezeichner</p>
<p>C:\Windows\Desktop\WINAPI Programming\meinprogramm\meinprogramm.cpp(6) : error C2065: 'SND_ALIAS' : nichtdeklarierter Bezeichner</p>
<p>Insgesammt sieht die c-Plusplus Datei so aus:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;windows.h&gt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow )
{
	PlaySound(&quot;SystemStart&quot;, NULL, SND_SYNC | SND_ALIAS);
	return 0;
}
</code></pre>
</blockquote>
<p>Die Winmm.lib fehlt Deinem Projekt!</p>
<p>Gruß,<br />
Colonius</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452632</guid><dc:creator><![CDATA[Colonius]]></dc:creator><pubDate>Thu, 05 Feb 2004 16:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 16:40:40 GMT]]></title><description><![CDATA[<p>Dann müsste es aber doch nen Linker-Error geben (ala &quot;Unresolved...&quot;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452641</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 05 Feb 2004 16:40:40 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 17:04:10 GMT]]></title><description><![CDATA[<p>Vielen Dank für eure Antworten!<br />
Das mit der .lib Datei werde ich gleich 'mal ausprobieren!</p>
<p>Thx, Thx, Thx <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/452661</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452661</guid><dc:creator><![CDATA[playsound]]></dc:creator><pubDate>Thu, 05 Feb 2004 17:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 17:28:35 GMT]]></title><description><![CDATA[<p>Waum muss man eigentlich im VC++ die Libs alle linken? Im BCB reicht es aus, die Header-Datei zu inkludieren (in diesem Fall mmsystem.h).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452696</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Thu, 05 Feb 2004 17:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 17:36:07 GMT]]></title><description><![CDATA[<p>Werden die vielleicht standardmäßig alle mitgelinkt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/452709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452709</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 05 Feb 2004 17:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Thu, 05 Feb 2004 18:08:56 GMT]]></title><description><![CDATA[<p>Ich weiß nicht, aber scheint ja fast so, hmm?</p>
<p>EDIT: Ich hab mal ne Frage im BCB-Forum gestartet. <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/452746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452746</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Thu, 05 Feb 2004 18:08:56 GMT</pubDate></item><item><title><![CDATA[Reply to HILFE! PlaySound() funktioniert nicht on Sun, 08 Feb 2004 17:52:49 GMT]]></title><description><![CDATA[<p>Schau dir mal die Header an - gibt #defines, mit denen man bestimmte Windows-Funktionen ausblenden kann (damit die Windows-Header schneller compiliert werden). Für Playsound darf (glaub ich) NOSOUND nicht definiert sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/454612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/454612</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Sun, 08 Feb 2004 17:52:49 GMT</pubDate></item></channel></rss>