VC++ project/workspace question
-
Hi, I added a .h file and a .cpp file to my project to contain one function I needed. Somewhere along the line, I decided I needed it to be a class function instead, so I moved the declaration to the class header file and defined it in the class source file. Then I tried to delete the .h file and .cpp file with the delete key, and that seemed to work. However, the next time I built the code, a new folder showed up in the File View called External Dependencies, and it contained the .h file I deleted. How do I get rid of that file, or just get everything back to how it was before I tried to do the deleting?
-
Hi, I added a .h file and a .cpp file to my project to contain one function I needed. Somewhere along the line, I decided I needed it to be a class function instead, so I moved the declaration to the class header file and defined it in the class source file. Then I tried to delete the .h file and .cpp file with the delete key, and that seemed to work. However, the next time I built the code, a new folder showed up in the File View called External Dependencies, and it contained the .h file I deleted. How do I get rid of that file, or just get everything back to how it was before I tried to do the deleting?
You are including the header file somewhere. Delete the #include statement from your source. Pavel Sonork 100.15206
-
You are including the header file somewhere. Delete the #include statement from your source. Pavel Sonork 100.15206
Yes, it took me awhile, but I thought of that too, and I commented out a line with an include statement I found, but the External Dependencies folder wouldn't go away. After reading your post, I decided to take another look. I had some other errors, from being in the middle of defining another function, and when I commented that function out, I didn't get anymore errors, and the External Dependencies folder disappeared. Thanks.