Aug 25, 2010

Change the Project's Directory & couldn't find "stdafx.h"

Last time I built a working program with a GUI.
After that, I saved it, changed the DIRECTORY NAME that it was in ( so, originally, it was in [Original name]/[Original name], but i changed the directory to [New name]/[Original name] ).
Then, when I go back and run the program again, I got error: 
fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified.
it seems quite impossible, since "stdafx.h" is already there in my project.
Confused!!!!

However, after a while, I found some article online and tried to imitate it, and the issue is solved :)
Here is what I do:
  • Goto Build - Clean Solution
  • Build & Run again
Hope this help anyone catching it later

No comments:

Post a Comment