Hey David
i have 2 questions
i have visual studio 6.0
I wrote a project in mfc and i want to bring it to a friend.But he has not the visual studio !
How to create a package ?

updateallviews causes to refresh all the window
If i want to refresh only different parts of the
window ,how to do it ?  

charly , Thank you for your question.

If by 'package' you mean a way to build your project from source files, you can export a project by creating a "makefile". This is described in the Visual C++ MSDN Library:

-----Start of Quotation-----
There are two ways to export a makefile from the development environment. You can choose to export a makefile whenever you save a project, or export a makefile only for specific projects. Note that creating an export makefile increases project save time, and you should only do it when necessary.

The export makefile stores all the information required to build the project and can be used from the command line. The makefile specifies the same project build settings you set in the development environment. If you use NMAKE on the command line to build the project, the NMAKE syntax needed is given in the makefile as a comment that begins !MESSAGE NMAKE. For example, for a file test.mak the NMAKE syntax line is:

NMAKE /f "test.mak" CFG="test - Win32 Debug"
-----End of Quotation-----

The makefile contains commands to build each source file and to link the result. For an MFC project, you also have to make the MFC redistributable components (such as the MFC library files) available.

'updateallviews' is used when you want views to be updated automatically after the 'document' has changed. It is up to the 'OnUpdate' functions that you write to specify what parts of their window to invalidate. Invalidating part of a window causes that part to be repainted via a WM_PAINT message.

David Spector


All Answers

Answers by Expert:

Ask Experts


David Spector


Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.


I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 About.com. All rights reserved.