<?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[Bestimmtes Laufwerk herausfinden!]]></title><description><![CDATA[<p>Hi Zusammen.</p>
<p>Standartmässig haben die Computeruser ihr Diskettenlaufwerk auf dem A und ihr CD-ROm auf dem D.</p>
<p>Wie kann ich mit MFC herausfinden wo sich das Disketten bzw. CD-ROM Laufwerk befindet?? Kann sein, das ein User mit mehreren Partitionen wie zb. Ich jetzt, das CD-Rom Laufwerk unter dem LFWK-Buchstaben F: haben anstatt D.</p>
<p>Ist das überhaupt möglich?<br />
Oder muss ich wirklich den User selbst bitten den Laufwerksbuchstaben angeben zu lassen? <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>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80509/bestimmtes-laufwerk-herausfinden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 02:59:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80509.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jul 2004 20:43:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Wed, 21 Jul 2004 20:43:42 GMT]]></title><description><![CDATA[<p>Hi Zusammen.</p>
<p>Standartmässig haben die Computeruser ihr Diskettenlaufwerk auf dem A und ihr CD-ROm auf dem D.</p>
<p>Wie kann ich mit MFC herausfinden wo sich das Disketten bzw. CD-ROM Laufwerk befindet?? Kann sein, das ein User mit mehreren Partitionen wie zb. Ich jetzt, das CD-Rom Laufwerk unter dem LFWK-Buchstaben F: haben anstatt D.</p>
<p>Ist das überhaupt möglich?<br />
Oder muss ich wirklich den User selbst bitten den Laufwerksbuchstaben angeben zu lassen? <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>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565509</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:43:42 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 06:14:27 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>guckst du: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=80417" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=80417</a></p>
<p>Den Quellcode baust du nur noch um. Kannst ja nur auf DRIVE_CDROM und DRIVE_REMOVABLE reagieren. Wie man die Kennbuchstaben ermittelt steht dort auch. Im Prinzip steht dort alles was du benötigst... <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>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565581</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 06:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 07:30:56 GMT]]></title><description><![CDATA[<p>Oder hiermit:</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;shlwapi.h&gt;

// uDrive:
// 0 - A:\
// 1 - B:\
// 2 - C:\
// usw.

BOOL IsDriveReady(UINT uDrive)
{
    TCHAR szRootPathName[32];
    UINT uErrorMode;
    BOOL bRet;

    PathBuildRoot(szRootPathName, uDrive);

    uErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
    bRet = GetVolumeInformation(szRootPathName, NULL, 0, NULL, NULL, NULL, NULL, 0);
    SetErrorMode(uErrorMode);

    return(bRet);
}
</code></pre>
<p>Ist zwar kein MFC, aber leichter zu handhaben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565630</guid><dc:creator><![CDATA[Max M.]]></dc:creator><pubDate>Thu, 22 Jul 2004 07:30:56 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 09:24:28 GMT]]></title><description><![CDATA[<p>Dank euch.</p>
<p>Bei dem Code bekomm ich aber, wenn ich GetDriveType(DRIVE_CDROM); ausgeben will folgender Fehler:</p>
<blockquote>
<p>C:\Programme\Microsoft Visual Studio\MyProjects\MSP\MSPDlg.cpp(614) : error C2664: 'GetDriveTypeA' : cannot convert parameter 1 from 'const int' to 'const char *'<br />
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast</p>
</blockquote>
<p>Warum das??</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565734</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 09:24:28 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 09:42:06 GMT]]></title><description><![CDATA[<p>Du hast da was in der MSDN übersehen:<br />
GetDriveType</p>
<p>The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.</p>
<p>UINT GetDriveType(<br />
LPCTSTR lpRootPathName<br />
);<br />
Parameters<br />
lpRootPathName<br />
[in] Pointer to a null-terminated string that specifies the root directory of the disk to return information about. A trailing backslash is required. If this parameter is NULL, the function uses the root of the current directory.<br />
Return Values<br />
The return value specifies the type of drive. It can be one of the following values.</p>
<p>Value Meaning<br />
DRIVE_UNKNOWN The drive type cannot be determined.<br />
DRIVE_NO_ROOT_DIR The root path is invalid. For example, no volume is mounted at the path.<br />
DRIVE_REMOVABLE The disk can be removed from the drive.<br />
DRIVE_FIXED The disk cannot be removed from the drive.<br />
DRIVE_REMOTE The drive is a remote (network) drive.<br />
DRIVE_CDROM The drive is a CD-ROM drive.<br />
DRIVE_RAMDISK The drive is a RAM disk.</p>
<p>Das heisst, du rufst das falsch auf.<br />
Probier das mal so ungefähr:</p>
<pre><code class="language-cpp">if(GetDriveType(&quot;c:\\&quot;) == DRIVE_CDROM)
{
 MessageBox(&quot;Lw C ist ein CD-Lw&quot;);
}
</code></pre>
<p>... viel spass</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565757</guid><dc:creator><![CDATA[mmmh .. soso]]></dc:creator><pubDate>Thu, 22 Jul 2004 09:42:06 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 09:58:56 GMT]]></title><description><![CDATA[<p>Ja ok Thx.<br />
Funzt.</p>
<p>Doch so finde ich das CD-ROM Laufwerk auch nur müühhsaaam raus.</p>
<p>Gibt es nicht eine möglichkeit dies in eine Schleife zu packen welche alle Buchstaben von A-Z durchschaut und wenn es dann zb: E ist, das er dort stoppt und das E: weiterverwendet werden kann ???</p>
<p>Whileschleifen gibt ja ++1; oder so, aber bei Buchstaben???</p>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565773</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 09:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:15:47 GMT]]></title><description><![CDATA[<p>?????????????????????????????????</p>
<pre><code class="language-cpp">CString strReturn;
	DWORD	dwDrives = GetLogicalDrives();   
    char    szDrive[8]=&quot;A:\\&quot;;

	for(int i=0, j=1; i&lt;26; i++, j*=2) 
    { 
        if(dwDrives &amp; j) 
        { 
			szDrive[0] = i + 'A'; 
            strReturn += szDrive; 

			switch (GetDriveType(szDrive)) 
            { 
				 case DRIVE_CDROM:			strReturn += &quot;CDROM&quot;;
											ZiehDerKatzAmSchwanz();
											break; 
				 case DRIVE_REMOVABLE:		strReturn += &quot;Wechseldatentraeger&quot;; 
											RubbelDieKatz();
											break;
            } 
		}
	}
</code></pre>
<p>Das Bsp. läuft in einer Schleife und geht von A - Z.<br />
Verstehe nicht so ganz was du willst / meinst !?!?!?</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565794</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:15:47 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:17:37 GMT]]></title><description><![CDATA[<p>Nö. Eben nich.</p>
<p>Wenn ich jetzt if(GetDriveType(&quot;c:\&quot;) == DRIVE_CDROM) hab, klappt das!</p>
<p>Aber ich möchte nicht selbst immer c:\ oder d:\\ oder was auch immer durch GetDriveType abfragen. Ist das net inner schleife möglich?</p>
<p>Denn eigentlich möchte ich es umgekehrt:</p>
<p>DRIVE_CDROM == ?????</p>
<p>Dann:</p>
<p>MessageBox(&quot;Das CD-Rom Laufwerk hat den Buchstaben: &quot; + irgend_ne_var + &quot;\nVielen Dank!&quot;, &quot;INformation&quot;, MB_ICONPROGRAMMERISTDUMM | MB_OKORSPUELEN);</p>
<p><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>
]]></description><link>https://www.c-plusplus.net/forum/post/565800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565800</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:22:08 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CString strReturn;
    DWORD    dwDrives = GetLogicalDrives();   
    char    szDrive[8]=&quot;A:\\&quot;;

    for(int i=0, j=1; i&lt;26; i++, j*=2) 
    { 
        if(dwDrives &amp; j) 
        { 
            szDrive[0] = i + 'A'; 
            strReturn += szDrive; 

            switch (GetDriveType(szDrive)) 
            { 
                 case DRIVE_CDROM:          MessageBox(&quot;Das CD-Rom Laufwerk hat den Buchstaben: &quot; + strReturn + &quot;\nVielen Dank!&quot;, &quot;INformation&quot;, MB_ICONPROGRAMMERISTDUMM | MB_OKORSPUELEN); 

                                            break; 
                 case DRIVE_REMOVABLE:        strReturn += &quot;Wechseldatentraeger&quot;; 
                                            RubbelDieKatz();
                                            break;
            } 
        }
    }
</code></pre>
<p>Willst mich doch jetzt veräppeln oder?<br />
Vielleicht verstehe ich das jetzt wirklich nicht was du meinst. Aber die <strong>for-Schleife</strong> dort oben läuft von A - Z durch und fragt ab, ob ein CDROM oder ein Diskettenlaufwerk vorhanden ist. Du kannst ja wenn du lustig bist, bei gefundenem CDROM die Schleife abbrechen.</p>
<p>Ansonsten bitte erkläre nochmal was du gerne haben möchtest....</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565809</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:27:38 GMT]]></title><description><![CDATA[<p>Okay.<br />
Wenn ich jetzt nur das da schreibe:</p>
<pre><code class="language-cpp">MessageBox(&quot;Das CD-ROM Laufwerk hat den Buchstaben: &quot; + strReturn, &quot;Information&quot;, MB_ICONEXCLAMATION | MB_OK);
</code></pre>
<p>Wird mir folgendes Ausgegeben: (Screenshot) --&gt; <a href="http://www.swiss-portal.com/img_src_prob/hoppla.jpg" rel="nofollow">http://www.swiss-portal.com/img_src_prob/hoppla.jpg</a></p>
<p>Oder muss ich da anders abfragen??</p>
<pre><code class="language-cpp">if(strReturn == DRIVE_CDROM)
{
MessageBox(&quot;CD-Rom laufwerk gefunden&quot;, &quot;info&quot;, MB_OK);
}
else
{
// Verprügle die Katz &quot;miau&quot;
}
</code></pre>
<p>Is komisch. I glaub i bin zu blöd?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565821</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:39:19 GMT]]></title><description><![CDATA[<p>Sage mal, du willst mich doch in den Wahnsinn treiben oder? <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>
<pre><code class="language-cpp">void CDeinDlg::SchraubdieKatzandieWand()
{
	CString strReturn;
	DWORD    dwDrives = GetLogicalDrives();   
	char    szDrive[8]=&quot;A:\\&quot;;

	for(int i=0, j=1; i&lt;26; i++, j*=2) 
	{ 
		if(dwDrives &amp; j) 
		{ 
			szDrive[0] = i + 'A'; 
			strReturn = szDrive; 

			if (GetDriveType(szDrive) == DRIVE_CDROM)
			{
				AfxMessageBox(&quot;Buchstabe für CDROM&quot; + strReturn); 
				break; //für die Schleife, bricht ab
			}       
		}
	}
}
</code></pre>
<p>Was machen wir?<br />
1. Geht alle Laufwerke durch A - Z<br />
2. Überprüft über den Buchstaben mit GetDriveTyp ob das Laufwerk ein CDROM ist<br />
3. Ist das Laufwerk ein CDROM gibt er die MsgBox aus und bricht die Schleife ab<br />
4. Wenn es keins ist läuft er weiter.</p>
<p>in strReturn steht dann &quot;[Buchstabe]:\&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565837</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:54:03 GMT]]></title><description><![CDATA[<p>Jetzt aber mal stark vereinfacht:</p>
<pre><code class="language-cpp">CString strLFW = &quot;A:\\&quot;;

for(int i=0; i &lt; 26; i++) 
{ 
	strLFW.SetAt(0, 0x41 /* Für 'A' */ + i); 

	if (GetDriveType(strLFW) == DRIVE_CDROM) 
	{ 
		AfxMessageBox(&quot;Buchstabe für CDROM &quot; + strLFW); 
		break; //für die Schleife, bricht ab 
	}       
}
</code></pre>
<p>Bei jedem Durchlauf ändert er den Laufwerksbuchstaben, bis er das CDROM gefunden hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565863</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:57:16 GMT]]></title><description><![CDATA[<p>Ne, in den Wahnsinn treiben will ich Dich nicht, aber mein Programm!!<br />
Kann nicht sein das ein CD-ROM Laufwerk gleich 3 Buchstaben hat??? <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>Wenn ich folgenden Code hab:</p>
<pre><code class="language-cpp">CString            strReturn, 
                    strDrive=&quot;A:\\&quot;, 
                    szBuffer; 
    ULARGE_INTEGER    nDummy, 
                    nTotalBytes, 
                    nFreeBytes; 
    int                iBytes = 0; 
    DWORD            dwDrives = GetLogicalDrives();   
    char            szDrive[8]=&quot;A:\\&quot;, 
                    szVolName[80], 
                    szFSName[80]; 
    bool            bQueryVol; 

    strReturn += &quot;[Laufwerke]\n&quot;; 

    for(int i=0, j=1; i&lt;26; i++, j*=2) 
    { 
        if(dwDrives &amp; j) 
        { 
            szDrive[0] = i + 'A'; 
            strReturn += szDrive; 
            bQueryVol = false; 

			if (GetDriveType(szDrive) == DRIVE_CDROM) 
            { 
                AfxMessageBox(&quot;Buchstabe für CDROM&quot; + strReturn); 
                break; //für die Schleife, bricht ab 
            }    

			 /*
            switch(GetDriveType(szDrive)) 
            { 
                case DRIVE_UNKNOWN:     strReturn += &quot;Unbekannt&quot;; break; 
                case DRIVE_NO_ROOT_DIR: strReturn += &quot;? Kein Root-Verzeichnis ?&quot;; break; 
                case DRIVE_REMOVABLE:   strReturn += &quot;Wechseldatentraeger&quot;; bQueryVol = true; break; 
                case DRIVE_FIXED:       strReturn += &quot;Festplatte&quot;; bQueryVol = true; break; 
                case DRIVE_REMOTE:      strReturn += &quot;Netzwerkverknuepfung&quot;; break; 
                case DRIVE_CDROM:       strReturn += &quot;CDROM&quot;; break; 
                case DRIVE_RAMDISK:     strReturn += &quot;RAM-Disk&quot;; bQueryVol = true; break; 
            } */

            if(bQueryVol) 
            { 
                if(GetDiskFreeSpaceEx(szDrive, &amp;nDummy, &amp;nTotalBytes, &amp;nFreeBytes)) 
                { 
                    iBytes = nTotalBytes.QuadPart/1048576; 
                    if(iBytes &lt; 1024) 
                        szBuffer.Format(&quot;, %5d MB Kapazitaet&quot;, iBytes); 
                    else 
                        szBuffer.Format(&quot;, %5.1f GB Kapazitaet&quot;, (float) iBytes / 1024); 
                    strReturn += szBuffer; 

                    iBytes = nFreeBytes.QuadPart/1048576; 
                    if(iBytes &lt; 1024) 
                        szBuffer.Format(&quot;, %5d MB frei&quot;, iBytes); 
                    else 
                        szBuffer.Format(&quot;, %5.1f GB frei&quot;, (float) iBytes / 1024); 
                    strReturn += szBuffer; 
                } 

                if(GetVolumeInformation(szDrive, szVolName, 79, NULL, NULL, NULL, szFSName, 79)) 
                    strReturn += &quot;, &quot;; 
                    strReturn += szFSName; 
            } 
        } 
    }
</code></pre>
<p>Wird mir folgendes ausgegeben:</p>
<blockquote>
<p>Buchstabe für CD-ROM[Laufwerke]<br />
A:\C:\D:\</p>
</blockquote>
<p>?????? I glaub ich treib mich selbst in den Wahnsinn!!! <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="😮"
    /><br />
mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565872</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 10:59:06 GMT]]></title><description><![CDATA[<p><strong>IM SORRY!</strong></p>
<p>Hab jetzt einfach die Funktion</p>
<pre><code class="language-cpp">CString strLFW = &quot;A:\\&quot;; 

for(int i=0; i &lt; 26; i++) 
{ 
    strLFW.SetAt(0, 0x41 /* Für 'A' */ + i); 

    if (GetDriveType(strLFW) == DRIVE_CDROM) 
    { 
        AfxMessageBox(&quot;Buchstabe für CDROM &quot; + strLFW); 
        break; //für die Schleife, bricht ab 
    }       
}
</code></pre>
<p>eingebaut und den ganz laangen Code mit bool etc AUsgeklammert! jetzt klappts.<br />
THX!<br />
mfg<br />
PRO</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565878</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Thu, 22 Jul 2004 10:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmtes Laufwerk herausfinden! on Thu, 22 Jul 2004 11:09:01 GMT]]></title><description><![CDATA[<p>Das ist doch mal fein.</p>
<p>Der Fehler bei dir dort oben im Code lag daran, dass du strReturn <strong>+=</strong> das Laufwerk gemacht hast. Somit hat er dir A:\, B:\, C:\ bis zum CDROM, jeden Buchstaben dort reingeschrieben. Das strReturn war ja auch ursprünglich dafür gedacht, alle Laufwerke aufzulisten mit deren spezifischen Angaben.</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565898</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Thu, 22 Jul 2004 11:09:01 GMT</pubDate></item></channel></rss>