Thread: Saving MFC Source :: C++

  1. #1
    Registered User
    Join Date
    Nov 2001

    Saving MFC Source :: C++


    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.


  2. #2
    Registered User minime6696's Avatar
    Join Date
    Aug 2001

    Post well...

    Again I must say, [I]think about it! MFC is just a sort of API, and you're code is still C++, if you want some funciton, just copy it cut + paste.... U dont need to to convert anything.... if you know the basix of C++ you would know that the files are simply orginizors of code!


  3. #3
    Registered User
    Join Date
    Nov 2001
    ahhh. What are you conveying? MFC sucks?

    The problem with API is Petzold's book is uses C as examples, not C++.


  4. #4
    with an mfc using the app wizard...
    you must save all the .h and .cpp files..

    if you want to be able to run the program again you will also need the resource file usually named resource.h and the files in the res folder...
    what can you do away with and still rebuild your project????

    you can delete the .ncb .opt files and the debug and release folders.... there are a couple other files you can get rid of and still be able to rebuild your project.... but be careful before you start deleting away if you plan to rebuild the project...

  5. #5
    Registered User
    Join Date
    Nov 2001

    I have an idea for Microsoft. Microsoft should design a feature that can compress all *required* files into a zip/rar. Visual C++ exclude all temporary files. The programmers will only need to unzip it.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build, run Boland C++ 6 source file via VS2005?
    By userpingz in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2009, 03:25 AM
  2. Debug into Source
    By lehe in forum C++ Programming
    Replies: 4
    Last Post: 02-18-2009, 10:45 AM
  3. starting linux's source code and kernel
    By sawer in forum Linux Programming
    Replies: 9
    Last Post: 08-01-2006, 07:46 AM
  4. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  5. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM