Saving MFC Source :: C++

Status
Not open for further replies.
Hi.

I started an MFC sample program that Prosise include in his book. I would like to save the source code, but not the enter project. Note that I started the project using AppWizard.

What files do I have to save from the project so I can always open that project up again? Do I have to save the entire probject including Debug? I have not save and/or remove any files yet because I do not work to lose any resource files.

Thanks,
Kuphryn
 

bugbum1

Ars Scholae Palatinae
893
i'll start with what i know from a standard project

1) the .\debug directory and all files can go
2) the .\release directory and all files can go (unless you want to save the .exe).
3) in the . (current working directory, save all .h, .c and .cpp files (also save .res or a resource directory if one exists)
4) save the .dsp (project file) and .dsw (workspace file).

with these files you should be able to double click the dsw and compile the project. suggest you copy this to another directory and test it before blowing away the current "bloated" project.

ALSO, if you've been compiling MFC projects, issue this at the root of your dirve: del *.pch /s this will get rid of all pre compiled header files which are regenerated at compile time and save 5-10 MB of disk space for each file depending on the project size.

hope this help - plz post any other additions or corrections (not representing this list as comprehensive)
 
Status
Not open for further replies.