DeleteFile() not working in my VC.NET app
Hi, this snippet is from a VC.NET app:
The problem is that DeleteFunction() ain't working. 'srcfile' is a valied file path (and DeleteFile(srcfile) works when i put it in a win32console app). Here the execution pointer jumps to the else statement, but then again, AfxMessageBox() is also not working. Why is this?
int i = m_clistboxreslist.FindString(0,dat);
RecreateListTxt();//dump data to file