<?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[c++ Problem bitte schneller hilfe LESEN :(]]></title><description><![CDATA[<p>Hab da ein kleines Problem mit MS Visual C++</p>
<p>Und das sieht wie folgt aus er wirft mit beim compilieren immer folgende fehlermeldung raus... error C2065: 'DISK_GEOMETRY_EX' : undeclared identifier<br />
was normalerweise nicht sein kann da ich die benötige header datei schon includet habe:<br />
( Requirements<br />
Client: Included in Windows XP.<br />
Server: Included in Windows Server 2003.<br />
Header: Declared in Winioctl.h.)</p>
<p>Wenn jemand eine lösung dafür hat bitte schnell antworten.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Gruss tim</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51323/c-problem-bitte-schneller-hilfe-lesen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 12:24:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51323.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Oct 2003 07:02:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:02:10 GMT]]></title><description><![CDATA[<p>Hab da ein kleines Problem mit MS Visual C++</p>
<p>Und das sieht wie folgt aus er wirft mit beim compilieren immer folgende fehlermeldung raus... error C2065: 'DISK_GEOMETRY_EX' : undeclared identifier<br />
was normalerweise nicht sein kann da ich die benötige header datei schon includet habe:<br />
( Requirements<br />
Client: Included in Windows XP.<br />
Server: Included in Windows Server 2003.<br />
Header: Declared in Winioctl.h.)</p>
<p>Wenn jemand eine lösung dafür hat bitte schnell antworten.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Gruss tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368807</guid><dc:creator><![CDATA[timmaeh]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:03:48 GMT]]></title><description><![CDATA[<p>Du solltest DISK_GEOMETRY_EX dem Compiler bekannt machen.</p>
<p>Mal im ernst, hellsehen können wir nicht. Zeig mal etwas Quellcode oder mach ein Minimalbeispiel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368811</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:09:39 GMT]]></title><description><![CDATA[<p>Welchen Wert hat _WIN32_WINNT?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368812</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368812</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:09:39 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:17:25 GMT]]></title><description><![CDATA[<p>Hier ist ein Teil der Funktion:<br />
void HDD_USB(HWND hDlg)<br />
{<br />
OSVERSIONINFO lpVersionInfo;<br />
char szHDD[30];<br />
HANDLE hHDD = NULL;<br />
DWORD lpNoB, dwReturnValue;<br />
BOOL bReturnValue;<br />
BOOL bFoundOne = FALSE;<br />
BYTE lpBuffer[512];<br />
DWORD dwBufferSize = sizeof(DISK_GEOMETRY_EX);<br />
DWORD lpBytes;<br />
DWORD dwLastValid;<br />
BOOL bFoundEnd = FALSE;<br />
int i32G_valid, i1G_valid, i32M_valid, i1M_valid;<br />
int i, ikB, iHDD, iMax;<br />
div_t div_result;<br />
DISK_GEOMETRY_EX OutBuffer;   <br />
LONGLONG ll_1 = 1;<br />
BOOL bValid;<br />
LARGE_INTEGER li;</p>
<p>for (iHDD = 0; ((iHDD &lt; 10) &amp;&amp; (!bFoundOne)); iHDD++)<br />
{<br />
sprintf(szHDD, &quot;\\\.\\physicaldrive%i&quot;, iHDD);<br />
hHDD = CreateFile(szHDD,<br />
GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,<br />
NULL, OPEN_EXISTING, FILE_FLAG_NO_BUFFERING, NULL);<br />
if (hHDD != INVALID_HANDLE_VALUE)<br />
{<br />
if (DeviceIoControl(hHDD, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,<br />
NULL, 0, &amp;OutBuffer, dwBufferSize,<br />
&amp;lpBytes, NULL))</p>
<p>{<br />
dwReturnValue = SetFilePointer(hHDD, 0, NULL, FILE_BEGIN);<br />
bReturnValue = ReadFile(hHDD, &amp;lpBuffer, 512 &amp;lpNoB, NULL);<br />
if ((lpBuffer[0] == 'E') &amp;&amp; (lpBuffer[1] == 'V'))<br />
{<br />
bFoundOne = TRUE;<br />
}<br />
}<br />
}<br />
}</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368817</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368817</guid><dc:creator><![CDATA[timmaeh]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:30:40 GMT]]></title><description><![CDATA[<p>timmaeh schrieb:</p>
<blockquote>
<p>Hier ist ein Teil der Funktion:</p>
<pre><code class="language-cpp">void HDD_USB(HWND hDlg)
		{
	OSVERSIONINFO lpVersionInfo;
	char szHDD[30];
	HANDLE hHDD = NULL;
	DWORD lpNoB, dwReturnValue;
	BOOL bReturnValue;
	BOOL bFoundOne = FALSE;
	BYTE lpBuffer[512];
	DWORD dwBufferSize = sizeof(DISK_GEOMETRY_EX);
	DWORD lpBytes;
	DWORD dwLastValid;
	BOOL bFoundEnd = FALSE;
	int i32G_valid, i1G_valid, i32M_valid, i1M_valid;
	int i, ikB, iHDD, iMax;
	div_t div_result;
	DISK_GEOMETRY_EX OutBuffer;   
	LONGLONG ll_1 = 1;
	BOOL bValid;
	LARGE_INTEGER li;
	
			
			
			
	for (iHDD = 0; ((iHDD &lt; 10) &amp;&amp; (!bFoundOne)); iHDD++)
	    {
		 sprintf(szHDD, &quot;\\\\.\\physicaldrive%i&quot;, iHDD);
		 hHDD = CreateFile(szHDD,
                       GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
                       NULL, OPEN_EXISTING, FILE_FLAG_NO_BUFFERING, NULL);
		if (hHDD != INVALID_HANDLE_VALUE)
		{
			if (DeviceIoControl(hHDD, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,
										   NULL, 0, &amp;OutBuffer, dwBufferSize,
										   &amp;lpBytes, NULL))

			{
				dwReturnValue = SetFilePointer(hHDD, 0, NULL, FILE_BEGIN);
				bReturnValue = ReadFile(hHDD, &amp;lpBuffer, 512 &amp;lpNoB, NULL);
				if ((lpBuffer[0] == 'E') &amp;&amp; (lpBuffer[1] == 'V'))
				{
					bFoundOne = TRUE;
				}
			}
		}
	}
		
		
}
</code></pre>
</blockquote>
<p>Daran erkenn ich nu aber nicht welche Header Du einbindest.<br />
Und Codetags machen das lesen leichter <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> (s.o.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368826</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:30:40 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 07:57:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/4015">@timmaeh</a>:</p>
<p>Wenn du es so eilig hast, solltest du die angebotene Hilfestellung auch nutzen <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>
<p>Ein Blick in die Headerdatei genügt, um zu erkennen, dass die Deklaration der Struktur DISK_GEOMETRY_EX umgeben ist von einem</p>
<p>#if(_WIN32_WINNT &gt;= 0x0500)<br />
...<br />
#endif</p>
<p>Wenn also bei dir _WIN32_WINNT nicht mindestens auf 0x500 definiert ist, dann kann das nicht funktionieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368838</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 09 Oct 2003 07:57:26 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Problem bitte schneller hilfe LESEN :( on Thu, 09 Oct 2003 08:12:03 GMT]]></title><description><![CDATA[<p>Joar morgens bin ich leider noch nicht so leistungsfähig <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Aber es funzt ja nun <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>
<p>Danke nochmal an euch beide</p>
]]></description><link>https://www.c-plusplus.net/forum/post/368852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/368852</guid><dc:creator><![CDATA[timmaeh]]></dc:creator><pubDate>Thu, 09 Oct 2003 08:12:03 GMT</pubDate></item></channel></rss>