<?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[Maximale Blt-Anweisungen?]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe in eine Funktion für ein kleines Spiel drei Blit-Anweisungen geschrieben. Es werden aber nur zwei sichtbar ausgeführt(es kommt kein Fehler).<br />
Gibt es vielleicht eine maximale Anzahl an erlaubten Blt-Anweisungen pro Funktion (kann ich mir eigentlich nicht vorstellen) oder ist an meinem Code etwas falsch?</p>
<p>Ich hatte übrigens vorher die Anweisungen in drei verschiedene Funktionen gepackt, mit dem Ergebnis, dass nur eine ausgefährt wurde! Hat jemand eine Idee warum?</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &quot;graphic.hpp&quot; 
#include &quot;defs.hpp&quot; 
#include &quot;keyboardancer.hpp&quot; 

//############################################################# 

extern    KEYD    KeyD; 
extern    ARROW    Arrow; 

//############################################################# 

DrawBackground() 
{ 
    RECT rc; 

    HBITMAP hBackground = (HBITMAP)LoadImage(NULL, &quot;background4.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 
    HBITMAP hLogo = (HBITMAP)LoadImage(NULL, &quot;logo.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 
    HBITMAP hArrow = (HBITMAP)LoadImage(NULL,&quot;pfeil_rechts&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 

    HDC hDCBackground    = CreateCompatibleDC(0); 
    HDC hDCLogo            = CreateCompatibleDC(0); 
    HDC hDCArrow        = CreateCompatibleDC(0); 

    SelectObject(hDCBackground, hBackground); 
    SelectObject(hDCLogo, hLogo); 
    SelectObject(hDCArrow, hArrow); 

    GetClientRect(KeyD.hWnd, &amp;rc); 

    HDC hDChWnd = GetDC(KeyD.hWnd); 

    BitBlt(hDChWnd,0,0,rc.right,rc.bottom,hDCBackground,0,0,SRCCOPY); 
    TransparentBlt(hDChWnd,0,0,189,189,hDCArrow,0,0,189,189,RGB(254,0,254)); 
    TransparentBlt(hDChWnd,430,400,152,62,hDCLogo,0,0,610,250,RGB(254,254,254)); 

    ReleaseDC(KeyD.hWnd, hDChWnd); 
} 

//#############################################################
</code></pre>
<p>In Hoffnung auf Antwort<br />
spacegaier</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/149927/maximale-blt-anweisungen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 07:15:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149927.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Jun 2006 15:23:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 15:23:34 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe in eine Funktion für ein kleines Spiel drei Blit-Anweisungen geschrieben. Es werden aber nur zwei sichtbar ausgeführt(es kommt kein Fehler).<br />
Gibt es vielleicht eine maximale Anzahl an erlaubten Blt-Anweisungen pro Funktion (kann ich mir eigentlich nicht vorstellen) oder ist an meinem Code etwas falsch?</p>
<p>Ich hatte übrigens vorher die Anweisungen in drei verschiedene Funktionen gepackt, mit dem Ergebnis, dass nur eine ausgefährt wurde! Hat jemand eine Idee warum?</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &quot;graphic.hpp&quot; 
#include &quot;defs.hpp&quot; 
#include &quot;keyboardancer.hpp&quot; 

//############################################################# 

extern    KEYD    KeyD; 
extern    ARROW    Arrow; 

//############################################################# 

DrawBackground() 
{ 
    RECT rc; 

    HBITMAP hBackground = (HBITMAP)LoadImage(NULL, &quot;background4.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 
    HBITMAP hLogo = (HBITMAP)LoadImage(NULL, &quot;logo.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 
    HBITMAP hArrow = (HBITMAP)LoadImage(NULL,&quot;pfeil_rechts&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); 

    HDC hDCBackground    = CreateCompatibleDC(0); 
    HDC hDCLogo            = CreateCompatibleDC(0); 
    HDC hDCArrow        = CreateCompatibleDC(0); 

    SelectObject(hDCBackground, hBackground); 
    SelectObject(hDCLogo, hLogo); 
    SelectObject(hDCArrow, hArrow); 

    GetClientRect(KeyD.hWnd, &amp;rc); 

    HDC hDChWnd = GetDC(KeyD.hWnd); 

    BitBlt(hDChWnd,0,0,rc.right,rc.bottom,hDCBackground,0,0,SRCCOPY); 
    TransparentBlt(hDChWnd,0,0,189,189,hDCArrow,0,0,189,189,RGB(254,0,254)); 
    TransparentBlt(hDChWnd,430,400,152,62,hDCLogo,0,0,610,250,RGB(254,254,254)); 

    ReleaseDC(KeyD.hWnd, hDChWnd); 
} 

//#############################################################
</code></pre>
<p>In Hoffnung auf Antwort<br />
spacegaier</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1075659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075659</guid><dc:creator><![CDATA[spacegaier]]></dc:creator><pubDate>Sun, 11 Jun 2006 15:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 15:44:28 GMT]]></title><description><![CDATA[<blockquote>
<p>oder ist an meinem Code etwas falsch?</p>
</blockquote>
<p>Ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1075668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075668</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 11 Jun 2006 15:44:28 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 15:51:15 GMT]]></title><description><![CDATA[<p>Und was, bitte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1075670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075670</guid><dc:creator><![CDATA[spacegaier]]></dc:creator><pubDate>Sun, 11 Jun 2006 15:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 16:07:12 GMT]]></title><description><![CDATA[<p>Überleg mal selbst <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>
<p>Aja... DrawBackgound müsste der VC eigentlich, wenn de nix vor schreibst als int ansehen und nen return value erwarten!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1075682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075682</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 11 Jun 2006 16:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 16:12:14 GMT]]></title><description><![CDATA[<p>Er gibt mir deswegen auch eine Warnung aus, aber er zeichnet ja zwei der drei Blt-Anweisungen.</p>
<p>Aber wo ist mein Fehler??? Ich seh ihn echt net!!! Bitte sag's mir!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1075686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075686</guid><dc:creator><![CDATA[spacegaier]]></dc:creator><pubDate>Sun, 11 Jun 2006 16:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Sun, 11 Jun 2006 16:31:54 GMT]]></title><description><![CDATA[<p>Welche 2 sind es denn? Geht hArrow nicht? Dann guck mal ob der das Bild überhaupt geladen hat... &quot;pfeil_rechts&quot; <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/1075698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1075698</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 11 Jun 2006 16:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to Maximale Blt-Anweisungen? on Mon, 12 Jun 2006 15:21:52 GMT]]></title><description><![CDATA[<p>Ohh, wie peinlich!! <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="😮"
    /> <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="😮"
    /> <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="😮"
    /> Jetzt geht's. Danke!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1076320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1076320</guid><dc:creator><![CDATA[spacegaier]]></dc:creator><pubDate>Mon, 12 Jun 2006 15:21:52 GMT</pubDate></item></channel></rss>