Click here to Skip to main content
15,887,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ concern??????? Pin
CPallini8-Sep-08 22:46
mveCPallini8-Sep-08 22:46 
GeneralRe: GDI+ concern??????? Pin
TooShy2Talk8-Sep-08 22:58
TooShy2Talk8-Sep-08 22:58 
GeneralRe: GDI+ concern??????? Pin
CPallini8-Sep-08 23:04
mveCPallini8-Sep-08 23:04 
AnswerRe: GDI+ concern??????? Pin
TooShy2Talk8-Sep-08 22:16
TooShy2Talk8-Sep-08 22:16 
QuestionSetup package creation Pin
AnithaSubramani8-Sep-08 19:23
AnithaSubramani8-Sep-08 19:23 
AnswerRe: Setup package creation Pin
SandipG 8-Sep-08 21:25
SandipG 8-Sep-08 21:25 
QuestionVisual Studio ADO debugging Pin
mjackson118-Sep-08 19:01
mjackson118-Sep-08 19:01 
QuestionProblem in .exe copy Pin
vcprog8-Sep-08 18:55
vcprog8-Sep-08 18:55 
Hi all

I am copy file data from source to destination.It is working only for .txt file.Code is here
USES_CONVERSION; 
CString FileName; //Source path
CString cs; //Destination path  

		CString CStrfilename=FileName;

		char* charfilename;

		charfilename=CStrfilename.GetBuffer();

		LPCTSTR lp;

		//lp=charfilename; 

		lp=CStrfilename;
	
		PathSkipRoot(lp);

                 cs = "\\BackUp\\";
		cs += PathSkipRoot(lp);
		//CString st;
	 
	


		//AfxMessageBox(cs);
	//	CopyFile(st, cs,TRUE); 
		
			
		CopyFile(FileName, cs,TRUE);

But when i use
AfxMessageBox(cs)
then it is working for .exe. So can any one tell me where i am wrong?

Plz help me
AnswerRe: Problem in .exe copy Pin
vcprog8-Sep-08 19:41
vcprog8-Sep-08 19:41 
QuestionRe: Problem in .exe copy Pin
CPallini8-Sep-08 19:47
mveCPallini8-Sep-08 19:47 
AnswerRe: Problem in .exe copy Pin
vcprog8-Sep-08 19:55
vcprog8-Sep-08 19:55 
QuestionRe: Problem in .exe copy Pin
CPallini8-Sep-08 19:57
mveCPallini8-Sep-08 19:57 
AnswerRe: Problem in .exe copy Pin
vcprog8-Sep-08 20:37
vcprog8-Sep-08 20:37 
GeneralRe: Problem in .exe copy Pin
CPallini8-Sep-08 20:56
mveCPallini8-Sep-08 20:56 
GeneralRe: Problem in .exe copy Pin
vcprog8-Sep-08 21:14
vcprog8-Sep-08 21:14 
GeneralRe: Problem in .exe copy Pin
SandipG 8-Sep-08 21:27
SandipG 8-Sep-08 21:27 
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 
Questionneed help on linking error mssge while compiling C code! Pin
ishwarverma8-Sep-08 16:01
ishwarverma8-Sep-08 16:01 

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.