<?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[Bitmap schreiben - Probleme mit den Datentypen]]></title><description><![CDATA[<p>Ich habe ein Bitmap, möchte das mit CreateFile schreiben und scheitere bei der Eingabe des Dateinamens ...</p>
<pre><code class="language-cpp">LPCTSTR * lpszFileOutput = &quot;.\\desk.bmp&quot;; 
.
.
.
fileHandle=CreateFile(*lpszFileOutput,GENERIC_READ | GENERIC_WRITE,(DWORD)0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,(HANDLE) NULL);
</code></pre>
<p>Dabei bekomme ich immer wieder die folgende Fehlermeldung:</p>
<pre><code>error C2440: 'initializing' : cannot convert from 'const char [11]' to 'LPCTSTR * '
</code></pre>
<p>Kennt jemand dieses Problem und kann mir sagen, wie man es beheben kann ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/101590/bitmap-schreiben-probleme-mit-den-datentypen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 02:45:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/101590.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Feb 2005 14:40:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap schreiben - Probleme mit den Datentypen on Thu, 17 Feb 2005 14:40:46 GMT]]></title><description><![CDATA[<p>Ich habe ein Bitmap, möchte das mit CreateFile schreiben und scheitere bei der Eingabe des Dateinamens ...</p>
<pre><code class="language-cpp">LPCTSTR * lpszFileOutput = &quot;.\\desk.bmp&quot;; 
.
.
.
fileHandle=CreateFile(*lpszFileOutput,GENERIC_READ | GENERIC_WRITE,(DWORD)0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,(HANDLE) NULL);
</code></pre>
<p>Dabei bekomme ich immer wieder die folgende Fehlermeldung:</p>
<pre><code>error C2440: 'initializing' : cannot convert from 'const char [11]' to 'LPCTSTR * '
</code></pre>
<p>Kennt jemand dieses Problem und kann mir sagen, wie man es beheben kann ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725716</guid><dc:creator><![CDATA[2Atlantis]]></dc:creator><pubDate>Thu, 17 Feb 2005 14:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap schreiben - Probleme mit den Datentypen on Thu, 17 Feb 2005 17:00:44 GMT]]></title><description><![CDATA[<p>LPCTSTR ist bereits ein Pointer (dafür steht das LP) - also lass mal jeweils den * weg.<br />
Evtl. ist auch der Code aus den FAQ was für dich: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39400" rel="nofollow">Bild speichern</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/725836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725836</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 17 Feb 2005 17:00:44 GMT</pubDate></item></channel></rss>