<?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[gesucht]]></title><description><![CDATA[<p>Hallo!<br />
ich habe versucht eine wav als Resource abzuspielen.<br />
Hier der Code:</p>
<pre><code class="language-cpp">HGLOBAL hResource;
     switch (message)
     {
     case WM_CREATE:
		  hResource = LoadResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, FindResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, TEXT(&quot;BINTYPE&quot;), MAKEINTRESOURCE(IDR_BINTYPE1)));
		  PlaySound((LPCWSTR)LockResource(hResource), 0, SND_FILENAME | SND_ASYNC);
          return 0 ;
</code></pre>
<p>Leider Funktioniert das nicht<br />
EIn Screen von der Resource hängt an.<br />
<a href="http://img401.imageshack.us/img401/6470/unbenanntoy0.jpg" rel="nofollow">http://img401.imageshack.us/img401/6470/unbenanntoy0.jpg</a><br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/220227/gesucht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 02:01:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/220227.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Aug 2008 12:10:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gesucht on Wed, 13 Aug 2008 12:10:38 GMT]]></title><description><![CDATA[<p>Hallo!<br />
ich habe versucht eine wav als Resource abzuspielen.<br />
Hier der Code:</p>
<pre><code class="language-cpp">HGLOBAL hResource;
     switch (message)
     {
     case WM_CREATE:
		  hResource = LoadResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, FindResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, TEXT(&quot;BINTYPE&quot;), MAKEINTRESOURCE(IDR_BINTYPE1)));
		  PlaySound((LPCWSTR)LockResource(hResource), 0, SND_FILENAME | SND_ASYNC);
          return 0 ;
</code></pre>
<p>Leider Funktioniert das nicht<br />
EIn Screen von der Resource hängt an.<br />
<a href="http://img401.imageshack.us/img401/6470/unbenanntoy0.jpg" rel="nofollow">http://img401.imageshack.us/img401/6470/unbenanntoy0.jpg</a><br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563967</guid><dc:creator><![CDATA[Experter]]></dc:creator><pubDate>Wed, 13 Aug 2008 12:10:38 GMT</pubDate></item><item><title><![CDATA[Reply to gesucht on Wed, 13 Aug 2008 12:18:39 GMT]]></title><description><![CDATA[<p>SND_MEMORY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563977</guid><dc:creator><![CDATA[doc.dope]]></dc:creator><pubDate>Wed, 13 Aug 2008 12:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to gesucht on Wed, 13 Aug 2008 12:23:11 GMT]]></title><description><![CDATA[<p>danke, funzt aber trotzdem nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563987</guid><dc:creator><![CDATA[Experter]]></dc:creator><pubDate>Wed, 13 Aug 2008 12:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to gesucht on Wed, 13 Aug 2008 12:58:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">hRsrc = FindResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, TEXT(&quot;WAVE&quot;), MAKEINTRESOURCE(IDR_WAVE1));
		  hResource = LoadResource(((LPCREATESTRUCT)lParam)-&gt;hInstance, hRsrc);
		  lpRes = (LPSTR) LockResource(hResource); 
		  PlaySound((LPCWSTR)lpRes, ((LPCREATESTRUCT)lParam)-&gt;hInstance,  SND_RESOURCE);
</code></pre>
<p>Hier nochmal bisschen übersichtlicher<br />
Das ((LPCREATESTRUCT)lParam)-&gt;hInstance gibt nur die hInstance zurück</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1564029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1564029</guid><dc:creator><![CDATA[111113]]></dc:creator><pubDate>Wed, 13 Aug 2008 12:58:19 GMT</pubDate></item><item><title><![CDATA[Reply to gesucht on Thu, 14 Aug 2008 07:28:53 GMT]]></title><description><![CDATA[<p>Eine Zeile sollte es doch tun, oder?</p>
<pre><code>PlaySound(MAKEINTRESOURCE(IDR_WAVE1), ((LPCREATESTRUCT)lParam)-&gt;hInstance,  SND_RESOURCE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1564471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1564471</guid><dc:creator><![CDATA[Wally]]></dc:creator><pubDate>Thu, 14 Aug 2008 07:28:53 GMT</pubDate></item></channel></rss>