Monday, 4 March 2013

Changing Your AppWizard Decisions


Changing Your AppWizard Decisions
Running AppWizard is a one-time task. Assuming you are making a typical application,
you choose File, New; click the Projects tab; enter a name and folder; choose MFC
Application (exe); go through the six steps; create the application starter files; and then
never touch AppWizard again. However, what if you choose not to have online Help and
later realize you should have included it?
AppWizard, despite the name, isn't really magic. It pastes in bits and pieces of code you
need, and you can paste in those very same bits yourself. Here's how to find out what
you need to paste in.
First, create a project with the same options you used in creating the project whose
settings you want to change, and don't add any code to it. Second, in a different folder
create a project with the same name and all the same settings, except the one thing you
want to change (Context-Sensitive Help in this example). Compare the files, using
WinDiff, which comes with Visual C++. Now you know what bits and pieces you need to
add to your full-of-code project to implement the feature you forgot to ask AppWizard
for.
Some developers, if they discover their mistake soon enough, find it quicker to create a
new project with the desired features and then paste their own functions and resources
from the partially built project into the new empty one. It's only a matter of taste, but
after you go through either process for changing your mind, you probably will move a
little more slowly through those AppWizard dialog boxes.

No comments:

Post a Comment