Click here to Skip to main content
15,916,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: prevent renaming an exe when it is running in windows Pin
seemadavid20-Dec-06 21:41
seemadavid20-Dec-06 21:41 
AnswerRe: prevent renaming an exe when it is running in windows Pin
Waldermort20-Dec-06 21:39
Waldermort20-Dec-06 21:39 
GeneralRe: prevent renaming an exe when it is running in windows Pin
seemadavid21-Dec-06 0:59
seemadavid21-Dec-06 0:59 
QuestionUnhandled exception at .... Pin
Programm3r20-Dec-06 20:11
Programm3r20-Dec-06 20:11 
AnswerRe: Unhandled exception at .... Pin
Cedric Moonen20-Dec-06 20:16
Cedric Moonen20-Dec-06 20:16 
GeneralRe: Unhandled exception at .... Pin
Programm3r20-Dec-06 20:23
Programm3r20-Dec-06 20:23 
GeneralRe: Unhandled exception at .... Pin
kakan20-Dec-06 20:39
professionalkakan20-Dec-06 20:39 
GeneralRe: Unhandled exception at .... Pin
Programm3r20-Dec-06 20:48
Programm3r20-Dec-06 20:48 
O.k I have done what you said and I have located the place where it happens, can you see anything wrong here:

strcat((char*)szDirPath, (const char*)dtStamp);
char lpExistingFileName[BUF_SIZE];
char lpNewFileName[BUF_SIZE];
strcpy((char*)lpExistingFileName, (const char*)updateFName.c_str());
strcpy((char*)lpNewFileName ,(const char*)szDirPath);
if(CopyFile((LPCTSTR)lpExistingFileName,(LPCTSTR)lpNewFileName,FALSE))
    printf("File was moved successfully...\n");
else
    printf("File move failed....\n");


Many thanx

The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

AnswerRe: Unhandled exception at .... Pin
Programm3r20-Dec-06 20:51
Programm3r20-Dec-06 20:51 
GeneralRe: Unhandled exception at .... Pin
kakan20-Dec-06 21:07
professionalkakan20-Dec-06 21:07 
GeneralRe: Unhandled exception at .... Pin
Programm3r20-Dec-06 21:08
Programm3r20-Dec-06 21:08 
GeneralRe: Unhandled exception at .... Pin
kakan20-Dec-06 21:17
professionalkakan20-Dec-06 21:17 
Questionclass and functions Pin
cyn820-Dec-06 19:44
cyn820-Dec-06 19:44 
AnswerRe: class and functions Pin
nutkase20-Dec-06 20:24
nutkase20-Dec-06 20:24 
QuestionCopy constructor Pin
shadrach_india20-Dec-06 19:00
shadrach_india20-Dec-06 19:00 
AnswerRe: Copy constructor Pin
prasad_som20-Dec-06 19:09
prasad_som20-Dec-06 19:09 
QuestionDLL Initialization failed Pin
Parthiban20-Dec-06 17:49
Parthiban20-Dec-06 17:49 
AnswerRe: DLL Initialization failed Pin
shadrach_india20-Dec-06 18:44
shadrach_india20-Dec-06 18:44 
AnswerRe: DLL Initialization failed Pin
Stephen Hewitt20-Dec-06 19:00
Stephen Hewitt20-Dec-06 19:00 
GeneralRe: DLL Initialization failed Pin
Parthiban20-Dec-06 19:05
Parthiban20-Dec-06 19:05 
GeneralRe: DLL Initialization failed Pin
Stephen Hewitt20-Dec-06 19:19
Stephen Hewitt20-Dec-06 19:19 
GeneralRe: DLL Initialization failed Pin
Parthiban22-Dec-06 20:29
Parthiban22-Dec-06 20:29 
GeneralRe: DLL Initialization failed Pin
Stephen Hewitt2-Jan-07 12:23
Stephen Hewitt2-Jan-07 12:23 
QuestionError reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 17:49
cy163@hotmail.com20-Dec-06 17:49 
AnswerRe: Error reported by BoundsChecker Pin
Mark Salsbery20-Dec-06 18:08
Mark Salsbery20-Dec-06 18:08 

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.