Click here to Skip to main content
15,908,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to code a c++ only accept digit with limit? Pin
John R. Shaw26-Dec-06 4:43
John R. Shaw26-Dec-06 4:43 
QuestionCan't use Undo in Edit View Pin
Max++26-Dec-06 3:07
Max++26-Dec-06 3:07 
AnswerRe: Can't use Undo in Edit View Pin
prasad_som26-Dec-06 4:33
prasad_som26-Dec-06 4:33 
GeneralRe: Can't use Undo in Edit View Pin
Max++26-Dec-06 4:46
Max++26-Dec-06 4:46 
GeneralRe: Can't use Undo in Edit View Pin
Max++26-Dec-06 5:44
Max++26-Dec-06 5:44 
AnswerRe: Can't use Undo in Edit View Pin
prasad_som26-Dec-06 18:12
prasad_som26-Dec-06 18:12 
GeneralRe: Can't use Undo in Edit View Pin
karle26-Dec-06 8:33
karle26-Dec-06 8:33 
QuestionHow to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
ashtwin26-Dec-06 2:43
ashtwin26-Dec-06 2:43 
Hi All ,

I am creating the SDI application for showing the Operating system’s drive explorer tree.

This is working fine for all operating system from Win 2K to XP for 32 Bit.

But If I check it for Windows XP 64 bit operating system then It is showing strange behave , my all hierarchy of files and folders is coming properly but Files and folder of C:\windows\system32 directory are not coming properly , here it is showing the files and folders of C:\windows\systemWOW64 directory.

How to show the actual files and folder of C:\\Windows\\system32 directory ????????

I am using the following code snippet.
ShowFileFolder (CString strPath )
{
HANDLE hInstance;
BOOL bContinue=FALSE;

WIN32_FIND_DATA fatr;

int iCheck=0;
int iLocation;

if(strPath.GetAt(strPath.GetLength()-1)!='\\')
strPath=strPath+_T("\\");

if(strPath.GetLength()==3)
iCheck=1;
strPath=strPath+_T("*");

hInstance=FindFirstFile(strPath,&fatr);
do
{
bContinue=FindNextFile(hInstance,&fatr);
if(!(wcscmp(fatr.cFileName ,_T("."))==0) && !(wcscmp(fatr.cFileName,_T(".."))==0) && bContinue)
{
if(fatr.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
if((iLocation=strPath.ReverseFind('*'))!=-1)
strPath=strPath.Left(iLocation);
ShowFileFolder (strPath);
//AddItemToTree(strPath) ;

}
else
{
if((iLocation=strPath.ReverseFind('*'))!=-1)
strPath=strPath.Left(iLocation);

//AddItemToTree(strPath) ;
}
}

}while(hInstance && bContinue);

FindClose(hInstance);
}

ShowFileFolder (“ C:\\Windows\\system32 ”) and ShowFileFolder (“ C:\\Windows\\systemWOW64 ”) showing the same file folder hierarchy but actually both have diff file folders on Windows XP 64 bit OS



Regards





AnswerRe: How to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
Michael Dunn26-Dec-06 15:55
sitebuilderMichael Dunn26-Dec-06 15:55 
AnswerRe: How to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
ashtwin26-Dec-06 23:26
ashtwin26-Dec-06 23:26 
QuestionUDP multicast problem Pin
eli1502197926-Dec-06 2:21
eli1502197926-Dec-06 2:21 
AnswerRe: UDP multicast problem Pin
Mark Salsbery26-Dec-06 5:58
Mark Salsbery26-Dec-06 5:58 
QuestionStopping user interaction from dialogs. How ? Pin
Sakthiu26-Dec-06 1:31
Sakthiu26-Dec-06 1:31 
QuestionRe: Stopping user interaction from dialogs. How ? Pin
prasad_som26-Dec-06 2:05
prasad_som26-Dec-06 2:05 
QuestionRe: Stopping user interaction from dialogs. How ? Pin
Sakthiu26-Dec-06 2:16
Sakthiu26-Dec-06 2:16 
QuestionRe: Stopping user interaction from dialogs. How ? Pin
prasad_som26-Dec-06 2:25
prasad_som26-Dec-06 2:25 
QuestionHow to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 0:54
amitmistry_petlad 26-Dec-06 0:54 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 1:45
prasad_som26-Dec-06 1:45 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:06
amitmistry_petlad 26-Dec-06 2:06 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 2:16
prasad_som26-Dec-06 2:16 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:38
amitmistry_petlad 26-Dec-06 2:38 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 2:45
prasad_som26-Dec-06 2:45 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:56
amitmistry_petlad 26-Dec-06 2:56 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 3:02
prasad_som26-Dec-06 3:02 
GeneralRe: How to count items in list view control and select default value in combo box [modified] Pin
amitmistry_petlad 27-Dec-06 3:13
amitmistry_petlad 27-Dec-06 3:13 

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.