Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disappearing cpp files - fatal error C1083: Cannot open source file:""

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
I am having this really weird error and I can't figure out why it happens. Plus, it only seems to happen sometimes.

If I load a new project, add some stuff to a dialog, and then try to compile it, sometimes my cpp files disappear. I don't understand why because I am not doing anything significant.

For example, today I created a new project, dialog based. I then added an active x control to it. Then I tried to compile the program. I named the program test. When I compiled it, I got the error

fatal error C1083: Cannot open source file: 'E:\Program Files\Microsoft Visual Studio\MyProjects\test\testDlg.cpp': No such file or directory

It is true as well. When I checked the directory, there was no testDlg.cpp file. I don't know what happened to it since I didn't even open it.
 
Here's an update. I just went through the same procedure again. What I was doing was

1) Added an activeX control
2) added a button
3) Double click on the button to create OnButton1()

Then I got an error saying that it could not rename some tmp file to test3Dlg.cpp

I just tried going through the whole procedure again and everythign worked....I just don't know what is going on. This time, I did not have a number in the name but I don't think that should make a difference
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top