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

C / C++ / MFC

 
GeneralRe: ip address and URL of a host Pin
Mircea Puiu15-Nov-05 19:40
Mircea Puiu15-Nov-05 19:40 
GeneralRe: ip address and URL of a host Pin
includeh1016-Nov-05 2:20
includeh1016-Nov-05 2:20 
GeneralRe: ip address and URL of a host Pin
Mircea Puiu16-Nov-05 2:44
Mircea Puiu16-Nov-05 2:44 
QuestionWindows forms and the text box Pin
Richard_4815-Nov-05 10:09
Richard_4815-Nov-05 10:09 
AnswerRe: Windows forms and the text box Pin
David Crow16-Nov-05 2:47
David Crow16-Nov-05 2:47 
QuestionHow to embed and parse XML files in MFC project? Pin
Andre xxxxxxx15-Nov-05 9:35
Andre xxxxxxx15-Nov-05 9:35 
AnswerRe: How to embed and parse XML files in MFC project? Pin
David Crow15-Nov-05 9:51
David Crow15-Nov-05 9:51 
QuestionHelp with recursive dir. copying Pin
bobfilar15-Nov-05 9:29
bobfilar15-Nov-05 9:29 
I am working on accessing a directory to copy its contents (file directory, subdirectories, and all files) to another folder, which would be created via the program (eg C:\test), my question is that knowing I need to employ recursive direcotry copying what code should I look at using. I am avoiding .Net framework, and sticking to basic win32 calls. So far I have thought of using:
[CODE]RecursiveCopyFolder(CString csPath, CString csNewPath)
{
BOOL bRet = TRUE;

if( !CreateDirectory(csNewPath, NULL))
bRet = FALSE;

CString csPathMask;
CString csFullPath;
CString csNewFullPath;

csPath += _T("\\");
csNewPath += _T("\\");

csPathMask = csPath + _T("*.*");

WIN32_FIND_DATA ffData;
HANDLE hFind;
hFind = FindFirstFile(csPathMask, &ffData);

if (hFind == INVALID_HANDLE_VALUE){
return FALSE;
}

// Copying all the files
while (hFind && FindNextFile(hFind, &ffData))
{
csFullPath = csPath + ffData.cFileName;
csNewFullPath = csNewPath + ffData.cFileName;
[/CODE]

I don't know though... Am I on the right track? This seems to make sense to me, but it is not cooperating. I know that I will need to employ this in order for my project to work, so I am trying to ask around to get a better idea of whats out there. Thanks.

Rob
AnswerRe: Help with recursive dir. copying Pin
David Crow15-Nov-05 9:54
David Crow15-Nov-05 9:54 
AnswerRe: Help with recursive dir. copying Pin
__yb15-Nov-05 11:12
__yb15-Nov-05 11:12 
QuestionSetting (+) for Tree Item even if there are no children under the item. Pin
Maximilien15-Nov-05 9:15
Maximilien15-Nov-05 9:15 
QuestionRe: Setting (+) for Tree Item even if there are no children under the item. Pin
David Crow15-Nov-05 10:05
David Crow15-Nov-05 10:05 
AnswerRe: Setting (+) for Tree Item even if there are no children under the item. Pin
PJ Arends15-Nov-05 11:15
professionalPJ Arends15-Nov-05 11:15 
AnswerRe: Setting (+) for Tree Item even if there are no children under the item. Pin
Maximilien15-Nov-05 13:00
Maximilien15-Nov-05 13:00 
QuestionHow to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 8:56
Franken15-Nov-05 8:56 
AnswerRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow15-Nov-05 10:09
David Crow15-Nov-05 10:09 
QuestionRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 23:29
Franken15-Nov-05 23:29 
QuestionRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow16-Nov-05 2:43
David Crow16-Nov-05 2:43 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 23:47
Franken15-Nov-05 23:47 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow16-Nov-05 3:10
David Crow16-Nov-05 3:10 
Questionerror LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 6:53
celllllllll15-Nov-05 6:53 
AnswerRe: error LNK2001: unresolved external symbol Pin
David Crow15-Nov-05 7:20
David Crow15-Nov-05 7:20 
GeneralRe: error LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 7:31
celllllllll15-Nov-05 7:31 
GeneralRe: error LNK2001: unresolved external symbol Pin
tranglt15-Nov-05 18:55
tranglt15-Nov-05 18:55 
GeneralRe: error LNK2001: unresolved external symbol Pin
sunit515-Nov-05 20:18
sunit515-Nov-05 20:18 

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.