<?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[JPG nach BMP]]></title><description><![CDATA[<p>Hi liebes C++ Forum</p>
<p>Ich möchte ein JPG Bild als Hintergrund haben, und das mit einem Klick.<br />
Ich kann aber nur BMP Bilder anzeigen, Ja ActiveDesktop und so ist schon aktiv <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>
<pre><code class="language-cpp">SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, TEXT(&quot;Z:\\Wallaper\\1.bmp&quot;), SPIF_SENDCHANGE);
</code></pre>
<p>Das Funktionier prima, eigentlich das einzige was unter meinem XP funktioniert.</p>
<p>Nun, weil ich keine JPG Dateien anzeigen kann, muss ich sie erst von Laufwerk Z lesen und dann nach C:\ als bmp speichern.<br />
In Z habe ich nur einen kleinen begrenzten Speicher, leider, sonst würde ich es direkt als bmp speichern.</p>
<p>Nun nochmal konkret meine Frage:<br />
Wie stelle ich es mit dem BCB an, ein JPG Bild, dass von Z:\ geladen werden soll, nach C:\ als ein BMP zu speichern. (24Bit Farbtiefe)</p>
<p>Danke :p</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/10109/jpg-nach-bmp</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 17:13:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/10109.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jan 2003 18:37:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JPG nach BMP on Mon, 13 Jan 2003 18:37:00 GMT]]></title><description><![CDATA[<p>Hi liebes C++ Forum</p>
<p>Ich möchte ein JPG Bild als Hintergrund haben, und das mit einem Klick.<br />
Ich kann aber nur BMP Bilder anzeigen, Ja ActiveDesktop und so ist schon aktiv <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>
<pre><code class="language-cpp">SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, TEXT(&quot;Z:\\Wallaper\\1.bmp&quot;), SPIF_SENDCHANGE);
</code></pre>
<p>Das Funktionier prima, eigentlich das einzige was unter meinem XP funktioniert.</p>
<p>Nun, weil ich keine JPG Dateien anzeigen kann, muss ich sie erst von Laufwerk Z lesen und dann nach C:\ als bmp speichern.<br />
In Z habe ich nur einen kleinen begrenzten Speicher, leider, sonst würde ich es direkt als bmp speichern.</p>
<p>Nun nochmal konkret meine Frage:<br />
Wie stelle ich es mit dem BCB an, ein JPG Bild, dass von Z:\ geladen werden soll, nach C:\ als ein BMP zu speichern. (24Bit Farbtiefe)</p>
<p>Danke :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52237</guid><dc:creator><![CDATA[Neewb]]></dc:creator><pubDate>Mon, 13 Jan 2003 18:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Mon, 13 Jan 2003 19:12:00 GMT]]></title><description><![CDATA[<p>Wenn ich das Problem richtig versthen is das so:<br />
-Du hast einen Hintergrund auf Z:\.<br />
-Du willst das Bild unter C:\ als BMP speichern</p>
<p>Im FAQ steht was über GIF und JPG, ich glaube da wirst du fündig.</p>
<p>Aber wieso kannst du keine JPG´s anzeigen?<br />
Im FAQ steht indirekt auch wie man BMP zu JPG macht (wenn man den code versteht!)</p>
<p>Greez,<br />
J0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52238</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52238</guid><dc:creator><![CDATA[J0]]></dc:creator><pubDate>Mon, 13 Jan 2003 19:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Mon, 13 Jan 2003 19:13:00 GMT]]></title><description><![CDATA[<p>Sieh dir mal <a href="http://www.c-plusplus.net/forum/topic,39240.html" rel="nofollow">diesen FAQ-Beitrag</a> an, das <em>Assign</em> funktioniert auch in die andere Richtung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52239</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 13 Jan 2003 19:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Tue, 14 Jan 2003 02:02:00 GMT]]></title><description><![CDATA[<p>24 Bit-Format: (Graphics::TBitmap)::PixelFormat</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52240</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Tue, 14 Jan 2003 02:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Tue, 14 Jan 2003 11:28:00 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>mit aktiv ActiveDesktop geht *.jpg, *.gif,....</p>
<pre><code class="language-cpp">#define NO_WIN32_LEAN_AND_MEAN
#include &lt;vcl.h&gt;

bool __fastcall TForm1::SetWallpaper(AnsiString APictureFileName)
{
 WCHAR FileName[MAX_PATH];
 MultiByteToWideChar(CP_ACP, 0, APictureFileName.c_str(),
                     APictureFileName.Length() + 1,
                     FileName, sizeof(FileName));

 CoInitialize(NULL);
 IActiveDesktop *pActiveDesktop;

 HRESULT hr = CoCreateInstance(Shlobj::CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
                               IID_IActiveDesktop, (void**)&amp;pActiveDesktop);
 if (hr != S_OK)
  return false;
 if (pActiveDesktop-&gt;SetWallpaper((LPCWSTR)FileName, 0) != S_OK)
  return false;
 pActiveDesktop-&gt;ApplyChanges(AD_APPLY_ALL);
 pActiveDesktop-&gt;Release();
 CoUninitialize();
 return true;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/52241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52241</guid><dc:creator><![CDATA[Blazek Jaroslav]]></dc:creator><pubDate>Tue, 14 Jan 2003 11:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Sat, 18 Jan 2003 22:04:00 GMT]]></title><description><![CDATA[<p>_fastcall TForm1::SetWallpaper(AnsiString)' is not a member of 'TForm1'</p>
<p>Was muss ich noch machen?</p>
<p>Und wie führe ich es dann aus?<br />
z.B. dann bei einem Buttonklick</p>
<p>SetWallpaer(?...?);</p>
<p>Entschuldigt die für euch dummen Fragen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/52242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52242</guid><dc:creator><![CDATA[Neewb]]></dc:creator><pubDate>Sat, 18 Jan 2003 22:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Sat, 18 Jan 2003 22:08:00 GMT]]></title><description><![CDATA[<p>Du musst die Funktion auch in der Header-Datei deklarieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52243</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Sat, 18 Jan 2003 22:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Sun, 19 Jan 2003 08:06:00 GMT]]></title><description><![CDATA[<p>OK, habe das nun so unter private definiert</p>
<p>bool __fastcall SetWallpaper(AnsiString APictureFileName);</p>
<p>nun kommen aber 7 Fehler</p>
<pre><code>[C++ Error] Unit1.cpp(27): E2268 Call to undefined function 'CoInitialize'
[C++ Error] Unit1.cpp(28): E2451 Undefined symbol 'IActiveDesktop'
[C++ Error] Unit1.cpp(28): E2451 Undefined symbol 'pActiveDesktop'
[C++ Error] Unit1.cpp(30): E2268 Call to undefined function 'CoCreateInstance'
[C++ Error] Unit1.cpp(31): E2451 Undefined symbol 'IID_IActiveDesktop'
[C++ Error] Unit1.cpp(36): E2451 Undefined symbol 'AD_APPLY_ALL'
[C++ Error] Unit1.cpp(38): E2268 Call to undefined function 'CoUninitialize'
</code></pre>
<p>seit ihr euch sicher, dass der Code richtig ist und für den BCB?</p>
<p>#include &quot;Unit1.h&quot;<br />
und dann folgendes ist drinnen<br />
#define NO_WIN32_LEAN_AND_MEAN<br />
#include &lt;vcl.h&gt;</p>
<p>obwohl diese includes für den BCB doch überflüssig wären</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52244</guid><dc:creator><![CDATA[Frager]]></dc:creator><pubDate>Sun, 19 Jan 2003 08:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Sun, 19 Jan 2003 09:37:00 GMT]]></title><description><![CDATA[<p>OK, mal langsam:<br />
du schreibest den Code von oben in die *.cpp-Datei und in der *.h Datei ergänst du nur ganz oben:</p>
<pre><code class="language-cpp">#define NO_WIN32_LEAN_AND_MEAN
</code></pre>
<p>und unter private:</p>
<pre><code class="language-cpp">bool __fastcall TForm1::SetWallpaper(AnsiString APictureFileName);
</code></pre>
<p>Dann erstellst du auf Form1 einen Button und rufst die Funktion in OnClick auf:</p>
<pre><code class="language-cpp">SetWallpaper(&quot;Z:\\Wallaper\\1.jpg&quot;);
</code></pre>
<p>Dann müsste es eigentlich funktionieren!</p>
<p>ALexander Sulfrian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/52245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52245</guid><dc:creator><![CDATA[Alexander Sulfrian]]></dc:creator><pubDate>Sun, 19 Jan 2003 09:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Sun, 19 Jan 2003 13:16:00 GMT]]></title><description><![CDATA[<p>Danke Alexander Sulfrian, sptzenmäßif erklär!, aber es funktionier immernoch nicht. Wenigstens weiß ich jetzt wie diese bool Funktion geht, echt super. Und die deklarationen in den *.h</p>
<p>Dafür Danke ich dir!</p>
<p>Aber, ich glaube so deppert kann ich gar nicht sein, dass ich es jetzt immernoch nicht auf die Reihe gekrigt habe.<br />
Wenn das jemand mit den Informationen hinbekommt, dann bitte melden.<br />
Wenns jemand anders schafft, bitte auch melden <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/52246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/52246</guid><dc:creator><![CDATA[Neewb]]></dc:creator><pubDate>Sun, 19 Jan 2003 13:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 14:13:12 GMT]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich weiss, dass dieser Post uralt ist, ich habe aber das gleiche Problem:</p>
<p>Kann den Code nicht ausführen. Welche Header müssen dafür eingebunden werden? Laut MSDN muss shlobj.h genutzt werden. Es funktioniert aber nicht...</p>
<p>Danke im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897851</guid><dc:creator><![CDATA[irgendwer]]></dc:creator><pubDate>Fri, 21 Oct 2005 14:13:12 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 14:25:55 GMT]]></title><description><![CDATA[<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_33.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_33.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/897864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897864</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Fri, 21 Oct 2005 14:25:55 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 14:36:58 GMT]]></title><description><![CDATA[<p>&quot;Funktioniert nicht&quot; ist keine Fehlerbeschreibung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897870</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 21 Oct 2005 14:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 14:40:48 GMT]]></title><description><![CDATA[<p>Danke, aber das Problem besteht weiterhin</p>
<p>habe folgende Includes<br />
registry.hpp<br />
shlobj.h<br />
ComObj.hpp</p>
<p>aber BCB6 Enterpr gibt folgendes aus</p>
<p>Build<br />
[C++ Error] shobjidl.h(2193): E2238 Multiple declaration for 'FOLDERSETTINGS'<br />
[C++ Error] shobjidl.h(8095): E2238 Multiple declaration for 'DESKBANDINFO'<br />
[C++ Error] shlobj.h(1422): E2238 Multiple declaration for 'FVSHOWINFO'<br />
[C++ Error] shlobj.h(3457): E2238 Multiple declaration for 'SHELLFLAGSTATE'</p>
<p>binde ich irgendetwas zuviel ( Multiple declaration) oder zuwenig ein???</p>
<p>Bitte helft mir</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897877</guid><dc:creator><![CDATA[irgendwer]]></dc:creator><pubDate>Fri, 21 Oct 2005 14:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 15:27:31 GMT]]></title><description><![CDATA[<p>Unter Projekt-&gt;Optionen-&gt;Verzeichisse/Bedingungen dort unter Bedingungen NO_WIN32_LEAN_AND_MEAN eintragen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/897966</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/897966</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Fri, 21 Oct 2005 15:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 16:40:55 GMT]]></title><description><![CDATA[<p>Vielen, vielen Dank. Es funktioniert endlich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/898040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898040</guid><dc:creator><![CDATA[irgendwer]]></dc:creator><pubDate>Fri, 21 Oct 2005 16:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to JPG nach BMP on Fri, 21 Oct 2005 17:05:47 GMT]]></title><description><![CDATA[<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a> und auch weiter oben in diesem thread.<br />
Augen auf beim Eierkauf!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/898056</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898056</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 21 Oct 2005 17:05:47 GMT</pubDate></item></channel></rss>