Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in .exe copy Pin
CPallini8-Sep-08 21:37
mveCPallini8-Sep-08 21:37 
GeneralRe: Problem in .exe copy Pin
vcprog8-Sep-08 21:45
vcprog8-Sep-08 21:45 
GeneralRe: Problem in .exe copy Pin
Vincen Wang8-Sep-08 22:04
Vincen Wang8-Sep-08 22:04 
GeneralRe: Problem in .exe copy Pin
vcprog8-Sep-08 22:14
vcprog8-Sep-08 22:14 
GeneralRe: Problem in .exe copy Pin
Vincen Wang8-Sep-08 22:44
Vincen Wang8-Sep-08 22:44 
GeneralRe: Problem in .exe copy Pin
CPallini8-Sep-08 22:32
mveCPallini8-Sep-08 22:32 
GeneralRe: Problem in .exe copy Pin
vcprog8-Sep-08 21:58
vcprog8-Sep-08 21:58 
GeneralRe: Problem in .exe copy Pin
enhzflep8-Sep-08 22:00
enhzflep8-Sep-08 22:00 
cpallini wrote:
Please post the code wherein the error occurs and report the error exactly as it stands.



vcprog wrote:
DWORD dwError = GetLastError();
CopyFile(FileName, cs,TRUE);
AfxMessageBox(dwError);


Aye, aye, aye! As stated above, GetLastError returns an integer. You then need to use this integer IN CONJUNCTION WITH FormatMessage to get a printable text string. If you have a look here, you can see an example of use for the two functions:
http://msdn.microsoft.com/en-us/library/ms680582(VS.85).aspx[^]

We will "please help", so long as you will "please read".....
Questionneed help on linking error mssge while compiling C code! Pin
ishwarverma8-Sep-08 16:01
ishwarverma8-Sep-08 16:01 
AnswerRe: need help on linking error mssge while compiling C code! Pin
enhzflep8-Sep-08 17:03
enhzflep8-Sep-08 17:03 
QuestionHow do I incorporate my .cpp program, written in MS Visual C++(QuickWin.exe), into MS Visual C++ Windows App. Project? Pin
JFSabastian8-Sep-08 8:50
JFSabastian8-Sep-08 8:50 
QuestionRe: How do I incorporate my .cpp program, written in MS Visual C++(QuickWin.exe), into MS Visual C++ Windows App. Project? Pin
David Crow8-Sep-08 10:09
David Crow8-Sep-08 10:09 
AnswerRe: How do I incorporate my .cpp program, written in MS Visual C++(QuickWin.exe), into MS Visual C++ Windows App. Project? Pin
JFSabastian8-Sep-08 10:40
JFSabastian8-Sep-08 10:40 
QuestionRe: How do I incorporate my .cpp program, written in MS Visual C++(QuickWin.exe), into MS Visual C++ Windows App. Project? Pin
David Crow8-Sep-08 11:00
David Crow8-Sep-08 11:00 
QuestionMixing MFC framework with console application? Pin
arnoldoh8-Sep-08 8:34
arnoldoh8-Sep-08 8:34 
Questionvisual c++ executable file Pin
FrankMookie8-Sep-08 6:29
FrankMookie8-Sep-08 6:29 
AnswerRe: visual c++ executable file Pin
David Crow8-Sep-08 6:45
David Crow8-Sep-08 6:45 
GeneralRe: visual c++ executable file Pin
FrankMookie8-Sep-08 6:56
FrankMookie8-Sep-08 6:56 
Questionwho can give me a example in C++ using Factory Pattern Pin
york5288-Sep-08 6:06
york5288-Sep-08 6:06 
AnswerRe: who can give me a example in C++ using Factory Pattern Pin
Christian Graus8-Sep-08 6:26
protectorChristian Graus8-Sep-08 6:26 
GeneralRe: who can give me a example in C++ using Factory Pattern Pin
york5289-Sep-08 6:32
york5289-Sep-08 6:32 
AnswerRe: who can give me a example in C++ using Factory Pattern Pin
laksh22048-Sep-08 23:39
laksh22048-Sep-08 23:39 
GeneralRe: who can give me a example in C++ using Factory Pattern Pin
york5289-Sep-08 5:58
york5289-Sep-08 5:58 
QuestionParseCommandLine question Pin
sashoalm8-Sep-08 4:17
sashoalm8-Sep-08 4:17 
QuestionRe: ParseCommandLine question Pin
David Crow8-Sep-08 5:06
David Crow8-Sep-08 5:06 

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.