Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOpen HTML in CHM? Pin
Dominik Reichl22-Oct-04 22:01
Dominik Reichl22-Oct-04 22:01 
QuestionHow to open file dbf ? Pin
tranvuminh22-Oct-04 21:01
tranvuminh22-Oct-04 21:01 
AnswerRe: How to open file dbf ? Pin
YoSilver22-Oct-04 21:21
YoSilver22-Oct-04 21:21 
AnswerRe: How to open file dbf ? Pin
BlackDice23-Oct-04 3:22
BlackDice23-Oct-04 3:22 
GeneralMFC enlisting local drives Pin
missnazar22-Oct-04 20:07
missnazar22-Oct-04 20:07 
GeneralRe: MFC enlisting local drives Pin
ThatsAlok24-Oct-04 22:53
ThatsAlok24-Oct-04 22:53 
GeneralRe: MFC enlisting local drives Pin
missnazar25-Oct-04 0:38
missnazar25-Oct-04 0:38 
GeneralRe: MFC enlisting local drives Pin
ThatsAlok25-Oct-04 19:37
ThatsAlok25-Oct-04 19:37 
Hello Miss Nazar,

it upto when to call these function as i don't know wheather you want to fill combo box on Initialization of Application or at middle.

these code are from my article,i had already published that under name of 'sysutil' u can check that.

anyway here it is small explaination->these fucntion return a mfc collection class,which contain all the drives letter in it one by one.

the below given funtion check type of Drive.
////////////////this function send the type of drives
//0 stand for floppy dirive
//1 stand for hardisk
//2 stand for cdrom
//3 stand for ramdisk
//4 stand for Network Drive
//5 stand for unkown




void CNMPDrivesClass::SendTypeOFDrives(CUIntArray &Stat)
{

CUIntArray Stat1;//this vaiable is created for getting drives list


this->NMPReturnNoOfDrives(Stat1);//getting drives

CString str;

for(int i=0;i<stat1.getsize();i++)
{=""
="" str.format("%c:\\",stat1.getat(i));
="" uint="" i="::GetDriveType(str);
" switch(i)
="" {
="" case="" drive_unknown:="" stat.add('5');
="" messagebox(null,str+"the="" drive="" type="" cannot="" be="" determined.","",mb_ok);="" break;
="" drive_no_root_dir:="" messagebox(null,str+"="" the="" root="" path="" is="" invalid.="" for="" example,="" no="" volume="" mounted="" at="" path.="" ","",mb_ok);
="" drive_removable:="" stat.add('0');
="" disk="" can="" removed="" from="" drive.="" drive_fixed:="" stat.add('1');
="" drive_remote:="" stat.add('4');
="" a="" remote="" (network)="" drive_cdrom:="" stat.add('2');
="" cd-rom="" drive_ramdisk:="" stat.add('3');
="" ram="" disk.="" }
="" }=""

-----------------------------
<i="">"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
Generalrealizing virtual functions with *this parameter Pin
impeham22-Oct-04 13:02
impeham22-Oct-04 13:02 
GeneralRe: realizing virtual functions with *this parameter Pin
Gary R. Wheeler22-Oct-04 14:27
Gary R. Wheeler22-Oct-04 14:27 
GeneralRe: realizing virtual functions with *this parameter Pin
impeham22-Oct-04 15:22
impeham22-Oct-04 15:22 
GeneralRe: realizing virtual functions with *this parameter Pin
Andrew Walker22-Oct-04 16:57
Andrew Walker22-Oct-04 16:57 
GeneralRe: realizing virtual functions with *this parameter Pin
impeham23-Oct-04 1:38
impeham23-Oct-04 1:38 
GeneralRe: realizing virtual functions with *this parameter Pin
Andrew Walker23-Oct-04 4:59
Andrew Walker23-Oct-04 4:59 
GeneralWinhelp vs. HTML help context Pin
digwizfox22-Oct-04 12:52
digwizfox22-Oct-04 12:52 
GeneralRe: Winhelp vs. HTML help context Pin
Gary R. Wheeler22-Oct-04 14:46
Gary R. Wheeler22-Oct-04 14:46 
GeneralRe: Winhelp vs. HTML help context Pin
digwizfox25-Oct-04 8:12
digwizfox25-Oct-04 8:12 
GeneralRe: Winhelp vs. HTML help context Pin
digwizfox25-Oct-04 13:36
digwizfox25-Oct-04 13:36 
GeneralRe: Winhelp vs. HTML help context Pin
YoSilver22-Oct-04 21:07
YoSilver22-Oct-04 21:07 
Generalplease! help me about antialiasing!!! Pin
Shiwan Sung22-Oct-04 12:37
Shiwan Sung22-Oct-04 12:37 
GeneralRe: please! help me about antialiasing!!! Pin
YoSilver22-Oct-04 21:14
YoSilver22-Oct-04 21:14 
GeneralRe: please! help me about antialiasing!!! Pin
Shiwan Sung22-Oct-04 22:14
Shiwan Sung22-Oct-04 22:14 
GeneralOCX on IE File-&gt; New -&gt; Window Problem Pin
shinay22-Oct-04 9:57
shinay22-Oct-04 9:57 
GeneralStatic Linking Pin
hyling22-Oct-04 8:59
hyling22-Oct-04 8:59 
GeneralRe: Static Linking Pin
Alexander M.,22-Oct-04 10:10
Alexander M.,22-Oct-04 10:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.