Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set the short file name? Pin
Michael Dunn23-Nov-06 0:35
sitebuilderMichael Dunn23-Nov-06 0:35 
QuestionHow to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Larry Mills Sr22-Nov-06 14:00
Larry Mills Sr22-Nov-06 14:00 
AnswerRe: How to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Mark Salsbery22-Nov-06 14:12
Mark Salsbery22-Nov-06 14:12 
AnswerRe: How to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Christian Graus22-Nov-06 16:18
protectorChristian Graus22-Nov-06 16:18 
GeneralRe: How to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Galatei23-Nov-06 2:44
Galatei23-Nov-06 2:44 
GeneralRe: How to "CreateDirectory" , "CopyFile" and "ChangeDirectory" in MFC Pin
Larry Mills Sr23-Nov-06 14:44
Larry Mills Sr23-Nov-06 14:44 
Questioncreate additional child frame with different view? Pin
Franken22-Nov-06 11:32
Franken22-Nov-06 11:32 
QuestionCopyFile problem Pin
RoyceF22-Nov-06 10:53
RoyceF22-Nov-06 10:53 
Hi All,

This seems such a simple problem, I am embarrassed to ask for help, but I just can't seem to get the syntax correct for the CopyFile command. My application builds a vector of CStrings containing commands in format Copyfile( "source file", "dest file", FALSE ), using double quotes around the file specifications in case there are embedded spaces. The following is one of the commands:
CopyFile( "C:\Documents and Settings\rfickling\My Documents\Expense Report Form.xls", "Expense Report Form.xls", FALSE );

All of these commands fail with an error code of 123, which indicates invalid call syntax. What is wrong here? Can anyone help me with this dumb little problem?

Thanks,
Royce
QuestionRe: CopyFile problem Pin
CPallini22-Nov-06 11:05
mveCPallini22-Nov-06 11:05 
AnswerRe: CopyFile problem Pin
RoyceF22-Nov-06 11:52
RoyceF22-Nov-06 11:52 
GeneralRe: CopyFile problem Pin
kakan22-Nov-06 19:44
professionalkakan22-Nov-06 19:44 
GeneralRe: CopyFile problem Pin
CPallini22-Nov-06 19:58
mveCPallini22-Nov-06 19:58 
AnswerRe: CopyFile problem [modified] Pin
Mark Salsbery22-Nov-06 12:03
Mark Salsbery22-Nov-06 12:03 
AnswerRe: CopyFile problem Pin
ThatsAlok23-Nov-06 0:48
ThatsAlok23-Nov-06 0:48 
GeneralRe: CopyFile problem Pin
RoyceF24-Nov-06 14:53
RoyceF24-Nov-06 14:53 
QuestionWhich version of VC? Pin
PJ Arends22-Nov-06 9:04
professionalPJ Arends22-Nov-06 9:04 
AnswerRe: Which version of VC? [modified] Pin
Waldermort22-Nov-06 9:08
Waldermort22-Nov-06 9:08 
GeneralRe: Which version of VC? Pin
PJ Arends22-Nov-06 9:25
professionalPJ Arends22-Nov-06 9:25 
GeneralRe: Which version of VC? Pin
Waldermort22-Nov-06 14:19
Waldermort22-Nov-06 14:19 
QuestionVC++ 2003 Adding Event Handlers Pin
bob1697222-Nov-06 8:51
bob1697222-Nov-06 8:51 
AnswerRe: VC++ 2003 Adding Event Handlers Pin
Mark Salsbery22-Nov-06 9:44
Mark Salsbery22-Nov-06 9:44 
GeneralRe: VC++ 2003 Adding Event Handlers Pin
bob1697222-Nov-06 11:46
bob1697222-Nov-06 11:46 
GeneralRe: VC++ 2003 Adding Event Handlers Pin
Mark Salsbery22-Nov-06 11:58
Mark Salsbery22-Nov-06 11:58 
QuestionSocket programming Pin
nahitan22-Nov-06 6:47
nahitan22-Nov-06 6:47 
AnswerRe: Socket programming Pin
Mark Salsbery22-Nov-06 6:55
Mark Salsbery22-Nov-06 6:55 

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.