DeleteFile, C++, WinCE
-
08-06-2021 - |
Question
Whats wrong about this?
if((
::DeleteFile( L"IO.res"))== NULL)
MessageBox(NULL,L"Error",L"OK",MB_OK);
I have the IO.res file in the same directory, but the program cant delete it. With the integrated File manager I can delete. I use EVC4.
La solution
Windows CE doesn't have any concept of a "current" or "working" directory. You must provide a fully qualified path to the file you want to delete.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow