Hello,
I was doing a test Win32 Project. I am using the standard rename() function under cstdio. My program was not working. So, while tracing, I got the return value of rename function as -1.
I have not seen anywhere, rename(0 function returning -1. Could anyone tell me what's wrong.
Code:
int flag = rename((char *)OldName, (char *)NewName);
\\OldName and NewName are of type wchar_t
\\flag returns -1
Thanks in advance!