troubleshooting Question

How to use copyfile in vc6?

Avatar of titanium0203
titanium0203 asked on
Editors IDEsC++.NET ProgrammingVisual C++.NET
24 Comments3 Solutions1313 ViewsLast Modified:

Currently I can not copy files from one folder to others. I'm using copyfile but the process failed without an error.
check code snippet as below :

	LPCTSTR lpExistingFileName = "C:\\\\Product\\New\\\\product1.txt";
	LPCTSTR lpNewFileName = "C:\\\\Product\\\\Beta\\\\";

	CString msgbuf;
	printf(msgbuf, "Cannot open file %s [err=%ld]\n",GetLastError());

No Error when I try to output getlasterror.

I'm using vc6.

Join our community to see this answer!
Unlock 3 Answers and 24 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 24 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros