Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Visual Studio cannot recognize its own files

$
0
0

I am running Microsoft Visual Studio Express 2010 on my 64-bit Windows 7 Professional PC. I am attempting to build Win32 applications for my programming courses using the DirectX SDK. The problem I am experiencing is that Visual Studio cannot locate files in its directory.

After I create the new project, I attempt to add source (.cpp) and header (.h) files to the project. I add them by placing them in the project directory, then by right clicking the navigator in the software and selecting add->existing, and selecting the new files. When I attempt to run the program, it generates the following error:

1>------ Build started: Project: mstine_week2ilab, Configuration: Debug Win32 ------
1>  WinMain.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\Vir's Folder\DeVry Online\GSP-381 Computer Graphics Programming with Lab\iLab\mstine_week2ilab\mstine_week2ilab\WinMain.cpp': No such file or directory
1>  DirectXFramework.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\..\Vir's Folder\DeVry Online\GSP-381 Computer Graphics Programming with Lab\iLab\mstine_week2ilab\mstine_week2ilab\DirectXFramework.cpp': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

This error occurs even though the path specified by the program itself is valid. I attempt to see if the problem can be fixed by allowing the program to create its own source files, with no success. I can right-click, add->new file and create files directly from the program in the project's directory, but it is not recognized and the error still occurs.

This is an -extremely- frustrating and crippling error that I need to resolve with urgent immediacy. Any assistance with resolving this matter will be met with eternal appreciation and gratefulness. So far, several professors have tried and failed to negotiate this problem over the phone, and I have no resources to afford calling Microsoft technical support with their charges.

Here is a link to the project via SkyDrive: http://sdrv.ms/18p8w1Z

I realized after the fact that I relocated the source files to the solution directory one level above just to see if it would make a difference. It did not. They are in mstine_week2ilab, and were in mstine_week2ilab->mstine_week2ilab, if that makes any sense.


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>