Click here to Skip to main content
14,934,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: getting font metrics Pin
Hamid_RT11-Aug-06 7:50
MemberHamid_RT11-Aug-06 7:50 
QuestionTAPI Problem ???????? Pin
Rocky Marrone10-Aug-06 1:36
MemberRocky Marrone10-Aug-06 1:36 
Question2 question regarding directories Pin
YaronNir10-Aug-06 0:58
MemberYaronNir10-Aug-06 0:58 
AnswerRe: 2 question regarding directories Pin
Parthi_Appu10-Aug-06 1:06
MemberParthi_Appu10-Aug-06 1:06 
AnswerRe: 2 question regarding directories [modified] Pin
kakan10-Aug-06 1:08
professionalkakan10-Aug-06 1:08 
GeneralRe: 2 question regarding directories Pin
Parthi_Appu10-Aug-06 1:25
MemberParthi_Appu10-Aug-06 1:25 
GeneralRe: 2 question regarding directories Pin
kakan10-Aug-06 1:59
professionalkakan10-Aug-06 1:59 
AnswerRe: 2 question regarding directories [modified] Pin
James R. Twine10-Aug-06 1:22
MemberJames R. Twine10-Aug-06 1:22 
   For #1 - try PathIsDirectoryEmpty(...) since you asked about finding if any files exist, not how to enumerate them.  This function also does the right thing by ignoring the . and .. directories.

   For #2 - MoveFile(...), MoveFileEx, and SHFileOperation(...) can all move directories.  Which one you use depends on what kind of directory, how it needs to be moved, and where (same drive, same machine, or different ones).

-- modified at 7:55 Thursday 10th August, 2006

   Doh! D'Oh! | :doh: As WhiteSky pointed out, you asked about Copying a directory.  SHFileOperation can copy an entire directory, but the other two functions I suggested cannot (at least, not without tricking the system under certain situations).

   Peace!



-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 1:41
MemberHamid_RT10-Aug-06 1:41 
GeneralRe: 2 question regarding directories Pin
James R. Twine10-Aug-06 1:58
MemberJames R. Twine10-Aug-06 1:58 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 2:23
MemberHamid_RT10-Aug-06 2:23 
GeneralRe: 2 question regarding directories Pin
YaronNir10-Aug-06 2:11
MemberYaronNir10-Aug-06 2:11 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 2:18
MemberHamid_RT10-Aug-06 2:18 
QuestionRe: 2 question regarding directories Pin
David Crow10-Aug-06 2:59
MemberDavid Crow10-Aug-06 2:59 
AnswerRe: 2 question regarding directories Pin
James R. Twine10-Aug-06 15:36
MemberJames R. Twine10-Aug-06 15:36 
AnswerRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 1:26
MemberHamid_RT10-Aug-06 1:26 
GeneralRe: 2 question regarding directories Pin
James R. Twine10-Aug-06 1:28
MemberJames R. Twine10-Aug-06 1:28 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 1:38
MemberHamid_RT10-Aug-06 1:38 
GeneralRe: 2 question regarding directories Pin
ThatsAlok10-Aug-06 2:32
MemberThatsAlok10-Aug-06 2:32 
AnswerRe: 2 question regarding directories Pin
ThatsAlok10-Aug-06 2:26
MemberThatsAlok10-Aug-06 2:26 
QuestionSetting a Win32 app to the foreground Pin
69 Bay10-Aug-06 0:56
Member69 Bay10-Aug-06 0:56 
AnswerRe: Setting a Win32 app to the foreground Pin
mails2dhana10-Aug-06 1:09
Membermails2dhana10-Aug-06 1:09 
AnswerRe: Setting a Win32 app to the foreground Pin
Parthi_Appu10-Aug-06 1:18
MemberParthi_Appu10-Aug-06 1:18 
AnswerRe: Setting a Win32 app to the foreground Pin
ThatsAlok10-Aug-06 2:34
MemberThatsAlok10-Aug-06 2:34 
GeneralRe: Setting a Win32 app to the foreground Pin
mails2dhana10-Aug-06 3:13
Membermails2dhana10-Aug-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.