Inconsistent "cannot open source file" error

I have been given a video program with several header files and cpp files and I had to create some customer classes with the appropriate header and cpp files to add to it. I have been able to #include my header files in my cpp files but when I tried to #include them to the video program, I'm getting the "cannot open source file" errors. They are in the same directory as the program and other files and I copied the code from the other cpp files to avoid typos. Any suggestions on why this is happening? I am using Visual Studio 2010 Express to edit my programs.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// video program - it's the 2 h files at the end
 #include <iostream>
#include <fstream>
#include <string>
#include "videoType.h"
#include "videoListType.h"
#include "customerType.h"
#include "CustomerListClass.h"

using namespace std;


// CustomerListType.h has no errors
#include <iostream>
#include <string>
#include "CustomerListClass.h"
#include "customerType.h"
 
using namespace std;
Are all the source files in the same directory, including the "video program files"?

Yes they are. I ended up fixing the problem by creating a new program and copying all of the old code into it. It's working now.
Topic archived. No new replies allowed.