<?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[Compilerfehler: Unbekannte Größe?]]></title><description><![CDATA[<p>Bin mir nicht sicher ob ich hier richtig bin...</p>
<p>Folgender Code:</p>
<pre><code>void*		pVertices;

m_pVertexBuffer-&gt;Lock(lala,
		  lala,
		  &amp;pVertices,
		  lala)

memcpy(pVertices, &amp;m_pBuffer[m_dwFirstIndex],(m_dwLastIndex - m_dwFirstIndex +1) * m_dwVertexSize);
</code></pre>
<p>Das sind mal die wichtigsten Zeilen. Beim compilieren krieg ich folgenden Fehler:</p>
<p>*<em>error C2036: 'void <em>' : Unbekannte Groesse</em></em></p>
<p>Woran kann das denn liegen? Compilereinstellung maybe?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/59864/compilerfehler-unbekannte-größe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 03:04:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/59864.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Dec 2003 14:21:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 14:21:22 GMT]]></title><description><![CDATA[<p>Bin mir nicht sicher ob ich hier richtig bin...</p>
<p>Folgender Code:</p>
<pre><code>void*		pVertices;

m_pVertexBuffer-&gt;Lock(lala,
		  lala,
		  &amp;pVertices,
		  lala)

memcpy(pVertices, &amp;m_pBuffer[m_dwFirstIndex],(m_dwLastIndex - m_dwFirstIndex +1) * m_dwVertexSize);
</code></pre>
<p>Das sind mal die wichtigsten Zeilen. Beim compilieren krieg ich folgenden Fehler:</p>
<p>*<em>error C2036: 'void <em>' : Unbekannte Groesse</em></em></p>
<p>Woran kann das denn liegen? Compilereinstellung maybe?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425172</guid><dc:creator><![CDATA[eric_sun]]></dc:creator><pubDate>Mon, 29 Dec 2003 14:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 14:25:06 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>das liegt wohl eher nicht an deinen Compilereinstellungen, sondern an deinem Quellcode.</p>
<p>Ist übrigends C++/bzw ANSI C.</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425179</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Mon, 29 Dec 2003 14:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 14:30:51 GMT]]></title><description><![CDATA[<p>Hm, das witzige ist aber, das der Code kopiert ist aus einem funktionierenden Beispiel!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425187</guid><dc:creator><![CDATA[eric_sun]]></dc:creator><pubDate>Mon, 29 Dec 2003 14:30:51 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 14:41:19 GMT]]></title><description><![CDATA[<p>Wieviel Fehler bekommst du denn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425195</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Mon, 29 Dec 2003 14:41:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 15:03:40 GMT]]></title><description><![CDATA[<p>nur diesen einen, sonst klappt alles einwandfrei<br />
die beispiele in der msdn sind auch nicht viel anders, da wird nur BYTE* verwendet anstatt void*, aber byte kann ich nicht verwenden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425205</guid><dc:creator><![CDATA[eric_sun]]></dc:creator><pubDate>Mon, 29 Dec 2003 15:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 15:03:47 GMT]]></title><description><![CDATA[<p>Hi<br />
Benenne die Datei mal in [deinname].cpp um.<br />
In C++ kann soviel ich weiß void* nicht als &quot;right-handed&quot; operator benutzt werden (z.B. irgendwelche Zeigeradditionen).</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425220</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Mon, 29 Dec 2003 15:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Compilerfehler: Unbekannte Größe? on Mon, 29 Dec 2003 15:30:45 GMT]]></title><description><![CDATA[<p>bringt leider nichts...hier ist mal der msdn auszug:</p>
<pre><code>HRESULT Lock(
    UINT OffsetToLock,
    UINT SizeToLock,
    VOID **ppbData,
    DWORD Flags);

ppbData:
[out] VOID* pointer to a memory buffer containing the returned vertex data.
</code></pre>
<p>das beispiel der msdn verwendet BYTE*, funktioniert aber nicht weil er ein void* will, aber dann klappts auch nicht....ich werd zum :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/425249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/425249</guid><dc:creator><![CDATA[eric_sun]]></dc:creator><pubDate>Mon, 29 Dec 2003 15:30:45 GMT</pubDate></item></channel></rss>