Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: While going from Paused to Stopped, the Service Hangs at Stopping Pin
SunilKrSingh26-May-11 2:05
SunilKrSingh26-May-11 2:05 
QuestionIs it possible to change linked-text color for CRichEditCtrl? Pin
includeh1024-May-11 23:59
includeh1024-May-11 23:59 
AnswerRe: Is it possible to change linked-text color for CRichEditCtrl? Pin
tagopi25-May-11 0:37
tagopi25-May-11 0:37 
QuestionHow to remove the "0" from the starting i.e. from the left of the CString Pin
deadlyabbas24-May-11 22:20
deadlyabbas24-May-11 22:20 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
Prasann Mayekar24-May-11 22:24
Prasann Mayekar24-May-11 22:24 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
Code-o-mat24-May-11 22:31
Code-o-mat24-May-11 22:31 
AnswerRe: How to remove the "0" from the starting i.e. from the left of the CString Pin
_AnsHUMAN_ 25-May-11 1:23
_AnsHUMAN_ 25-May-11 1:23 
QuestionWeird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:03
od@ananzi.co.za24-May-11 21:03 
I have an application that upon startup does an automatic software update. It checks a folder if it contains any files, and if found, copies those files over to their respective target folders.

Now suddenly this updating does not work anymore. It copies the file to the target folder, but the result is not a file in the target folder, but a sub folder with it's name as the source file's name.

Ex.
I have a file in my upgrade folder:
C:\Program\Upg\Logo.jpg
This file needs to be copied to
C:\Program

So my program does
CopyFile(strSource, strTarget, FALSE)
with
strSource = "C:\\Program\\Upg\\Logo.jpg"
strTarget = "C:\\Program\\Logo.jpg"

After the copy I end up with a sub-folder in C:\Program called Logo.jpg\ which is empty, instead of a file called Logo.jpg in C:\Program

I then hard coded the paths like:
CopyFile("C:\\Program\\Upg\\Logo.jpg", "C:\\Program\\Logo.jpg", FALSE);
but it does exactly the same

I then made an empty new console application with the hard coded CopyFile call as above and it works fine, ie. Logo.jpg is copied from the Upg folder to C:\Program
I tried playing with the project settings, stack/heap sizes, etc, but my application does not copy the file !

Any ideas ?
AnswerRe: Weird ::CopyFile problem Pin
ShilpiP24-May-11 21:15
ShilpiP24-May-11 21:15 
GeneralRe: Weird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:25
od@ananzi.co.za24-May-11 21:25 
GeneralRe: Weird ::CopyFile problem Pin
ShilpiP24-May-11 21:38
ShilpiP24-May-11 21:38 
GeneralRe: Weird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:43
od@ananzi.co.za24-May-11 21:43 
GeneralRe: Weird ::CopyFile problem Pin
ShilpiP24-May-11 22:19
ShilpiP24-May-11 22:19 
GeneralRe: Weird ::CopyFile problem Pin
smags1325-May-11 10:28
smags1325-May-11 10:28 
GeneralRe: Weird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:38
od@ananzi.co.za24-May-11 21:38 
QuestionIdentifying a currently running application Pin
pix_programmer24-May-11 18:31
pix_programmer24-May-11 18:31 
AnswerRe: Identifying a currently running application Pin
pandit8424-May-11 18:43
pandit8424-May-11 18:43 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 18:53
pix_programmer24-May-11 18:53 
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 19:09
ShilpiP24-May-11 19:09 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 20:34
pix_programmer24-May-11 20:34 
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 20:42
ShilpiP24-May-11 20:42 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 21:10
pix_programmer24-May-11 21:10 
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 21:29
ShilpiP24-May-11 21:29 
GeneralRe: Identifying a currently running application Pin
Abhi Lahare26-May-11 8:38
Abhi Lahare26-May-11 8:38 
QuestionWM_NOTIFY to control itself Pin
includeh1024-May-11 10:22
includeh1024-May-11 10:22 

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.