I am quite new in visual studio c++ and im trying to import a file from a different directory using:
#import "*file directory*\filename"
I didnt have any problem during my first build check. But after I added a blank header file in the project, the error suddenly occured.
The error was "cannot open source file" and it was pointing on the wrong directory. It is now pointing to the directory of the solution folder completely ignoring the path I defined inside the quotation of the #import
.
does anyone know now why it suddenly points on the wrong directory even if I defined the exact directory and filename inside the #import?
I tried creating a new solution but i still encounter the same problem. I am using visual studio 2019. Tried using the 2017 version and i still have the same problem.
[Edit] Additional info: the exe that i am trying to import is located at system32.