Click to See Complete Forum and Search --> : MoveFileEx is failing


sam_kannan
August 2nd, 2005, 01:33 AM
In one of our applications we are moving the contents of one text file to another text file using MoveFileEx command. The problem is that it is failing to move the contents to the target file at our customer site. (But it works at our development center when we tested it after receiving the complaint) Can some one write to me the possible reasons for the failure of MoveFileEx command?

Ejaz
August 2nd, 2005, 02:35 AM
use GetLastError (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/getlasterror.asp) to see what error code you get.