now i use this:

Code:
HANDLE hFile = CreateFile(L"D:\\file.txt", GENERIC_READ, 
                   FILE_SHARE_READ,
                   NULL,
                   OPEN_ALWAYS,
                   FILE_ATTRIBUTE_NORMAL,
                   NULL);

	CString debug;

	if (INVALID_HANDLE_VALUE == hFile){// if setting/file not valid
		
		debug = "Step 12";
		detail.DetailValue = debug;
	}
detail.DoModal();
i still can't access the file, it displays the step 12, anyone know why? thanks a lot!!