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

C / C++ / MFC

 
GeneralDIRECTSHOW with IFilterChain Pin
madretierra23-Oct-04 0:01
madretierra23-Oct-04 0:01 
Generalh323 protocol implementation Pin
siddiqi22-Oct-04 22:43
siddiqi22-Oct-04 22:43 
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 
Hello Madame Nazar

I think this little piece of code can help you

[code]
CString CNMPDrivesClass::NMPChangeToBinary(DWORD dwVar)
{
long j=(long)dwVar;
int i,k=0;
char Binary[20];
CString str;
str.Format("%d",j);

while(j!=0)
{
i=j%2;
j=j/2;
if(i==0)
Binary[k++]='0';
else
Binary[k++]='1';
}


str.Format("%s",Binary);
return str;

}

void CNMPDrivesClass::NMPReturnNoOfDrives(CUIntArray &NoOfDrives)
{
CString str;

DWORD dwordVar=::GetLogicalDrives();

str=this->NMPChangeToBinary(dwordVar);

for( int drive = 0; drive < 26; drive++ )
{
if(str.GetAt(drive)=='1')
{
NoOfDrives.Add('A'+drive);
}

}

}
[/code]



-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
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 
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 

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.