<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8379524405279263165</id><updated>2011-11-27T16:23:22.347-08:00</updated><category term='C++'/><category term='Visual C++ Special Characters'/><category term='Screen Saver'/><category term='C Programming'/><category term='Visual C++ Audio turorial'/><category term='Game'/><category term='OpenGl'/><category term='Database'/><category term='Freeform Style'/><category term='Socket Programming'/><category term='Controls'/><category term='File I/O'/><category term='Longer Programs'/><category term='Comments'/><category term='Threads'/><category term='Programming with Visual C++'/><category term='Visual C++'/><category term='Visual C++ 2005'/><category term='VC++ Programm Structure'/><category term='GDI'/><category term='SDI/Splitter Window/MDI'/><category term='CObject Class'/><title type='text'>How to Learn Visual C++ : VC++ Tutorial</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sandy</name><uri>http://www.blogger.com/profile/02503582209971047801</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5410479508811446096</id><published>2009-05-26T02:10:00.000-07:00</published><updated>2009-05-26T02:10:00.697-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Longer Programs'/><title type='text'>Longer Programs</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Even long C++ programs are fairly easy to follow when you use whitespace and break long programs into a series of smaller functions.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;The sample program shown earlier is extremely simple. Some Visual C++ programs require several hundred thousand lines of code. Budding authors would not tackle a sequel to &lt;i&gt;War and Peace&lt;/i&gt;; likewise, brand-new Visual C++ programmers should stay away from huge programming projects. Most of the programs you write for a while will be relatively small, maybe only 10 to 100 lines of code. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Even a large program usually is not one big program stored in one file on the disk. Programmers often break up large programs into a set of smaller programs. The smaller programs work like building blocks, fitting together as needed to handle some kind of programming application. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just to give you another early view of a Visual C++ program, here is a program longer than the one you saw earlier. Don't sweat the specifics yet. Glance over the program and start getting used to the variety of special characters that Visual C++ understands. &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;// Filename: 1STLONG.CPP  // Longer C++ program that demonstrates comments,  // variables, constants, and simple input/output  #include &lt;iostream.h&gt;  void main()    {      int i, j;    // These three lines declare four variables      char c;      float x;      i = 4;       // i is assigned an integer literal      j = i + 7;   // j is assigned the result of a computation      c = 'A';     // Enclose all character literals                   // in single quotation marks      x = 9.087;   // x is a floating-point value      x = x * 12.3;// Overwrites what was in x                   // with something else      // Sends the values of the four variables to the screen      cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;The next few lessons discuss the commands in this program in depth. Again, just to give you an idea of the importance of readability, here is the same program as seen by the Visual C++ compiler, but a very different program indeed to someone who must maintain it later: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;//Filename: 1STLONG.CPP//Longer C++ program that demonstrates  //comments, variables, constants, and simple input/output  #include &lt;iostream.h&gt;  void main(){int i,j;//These three lines declare four variables  char c;float x;i=4;// i is assigned an integer literal  j=i+7;//j is assigned the result of a computation  c='A';//Enclose all character literals//in single quotation marks  x=9.087;//x is a floating-point value  x=x*12.3;//Overwrites what was in x with something else  //Sends the values of the four variables to the screen  cout&lt;&lt;i&lt;&lt;",&gt;&lt;/pre&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Longer programs don't have to be harder to read than shorter ones.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5410479508811446096?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5410479508811446096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5410479508811446096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5410479508811446096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5410479508811446096'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/longer-programs.html' title='Longer Programs'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-2695849315900215877</id><published>2009-05-25T02:09:00.000-07:00</published><updated>2009-05-25T02:09:00.421-07:00</updated><title type='text'>Uppercase and Lowercase</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span class="Apple-style-span" style="font-size: 16px; font-style: italic; "&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/concept.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/concept.gif" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;C++ is extremely picky about your Caps Lock key. Most of a C++ program appears in lowercase letters.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Although Visual C++ cares little about whitespace, it does know the difference between uppercase and lowercase letters. Most of the time, Visual C++ prefers lowercase letters. Visual C++'s preference for lowercase letters sets it apart from most other programming languages. To many programming languages, the following statements are identical: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;if (netpay &gt; grosspay)  If (NetPay &gt; GrossPay)  IF (NETPAY &gt; GROSSPAY)&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;To Visual C++, the three lines are extremely different. As you learn the C++ language, you will see when to use lowercase and when to use uppercase. Again, most of the time, you will program in lowercase letters. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Visual C++ contains a fixed vocabulary of keyword commands (also referred to as reserved words). Appendix D contains a complete list of Visual C++ commands. A command is part of the limited vocabulary that Visual C++ recognizes. For example, the command that transmits a value from one place in the program to another is return. You must use lowercase letters for return, as well as for all the other commands in Visual C++. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;&lt;span style="color:#FF0000;"&gt;Refer to Appendix D, "Visual C++ Command Reference," often as you learn the commands of Visual C++, especially the specific commands beginning in Lesson 3, "Data Basics."&lt;/span&gt;&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;If you want to print messages to the screen or to your printer, you can use uppercase, lowercase, or a mixture of both for the message itself. For example, recall that the program shown earlier printed this message to the screen: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;I will be a C++ expert!&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Because this is a message for the user of the program to read, you would want Visual C++ to print it using regular uppercase and lowercase characters. Because the message is not a keyword, it does not have to be all lowercase. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Before you go any further, a short review of the previous sections is warranted. Visual C++ is picky about lowercase commands and about making sure that you type special characters exactly right. Whitespace, however, is another thing entirely. Visual C++ does not care how much whitespace you add to a program for readability.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;For and for are two different words to C++. Be sure to maintain consistency with uppercase and lowercase letters. C++'s preference is usually lowercase letters.&lt;/note&gt; &lt;br /&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-2695849315900215877?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/2695849315900215877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=2695849315900215877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2695849315900215877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2695849315900215877'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/uppercase-and-lowercase.html' title='Uppercase and Lowercase'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-7308432670685094659</id><published>2009-05-24T02:25:00.001-07:00</published><updated>2009-05-24T02:25:40.530-07:00</updated><title type='text'>VC++ Programm Analysis</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h1 align="CENTER"&gt;&lt;center&gt;&lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; "&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/stop.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/stop.gif" /&gt;In this lesson, you learned about the fundamental format of all C++ programs. You saw the following: &lt;/span&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;Visual C++ programs contain a main() function. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Braces determine where the main() function begins and ends. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Preprocessor directives direct the way Visual C++ compiles your program. Preprocessor directives always begin with a pound sign, #. The #include directive includes files needed by library functions. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Visual C++ comments begin with // and end at the end of the line. Comments are for people, not for Visual C++. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The cout command outputs data to your screen. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;All characters are important in Visual C++ programs. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Project 2 Listing. Introduction to Visual C++ programs.&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;1:  // Filename: PROJECT2.CPP  2:  // Introduces the format of Visual C++ programs and demonstrates  3:  // how to write Visual C++ comments, the #include preprocessor  4:  // directive, and the cout command that outputs data to the  5:  // screen.  6:  7:  #include &lt;iostream.h&gt;  8:  9:  void main()  10:  {  11:    cout &lt;&lt; "I have a ";  12:    cout &lt;&lt; "Sleekster";       // Continues the output line  13:    cout &lt;&lt; " automobile.";      14:    cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;1: A Visual C++ comment that includes the program's filename.&lt;/p&gt;&lt;p&gt;2: A comment that begins the introduction of the program's description.&lt;/p&gt;&lt;p&gt;3: The program's description continues.&lt;/p&gt;&lt;p&gt;4: The program's description continues.&lt;/p&gt;&lt;p&gt;5: The program's description continues.&lt;/p&gt;&lt;p&gt;6: Extra blanks make your program more readable.&lt;/p&gt;&lt;p&gt;7: The cout command needs information in the IOSTREAM.H header file.&lt;/p&gt;&lt;p&gt;8: Extra blanks make your program more readable.&lt;/p&gt;&lt;p&gt;9: All functions have names and the first function in all Visual C++ programs is main().&lt;/p&gt;&lt;p&gt;10: All functions begin with a left brace.&lt;/p&gt;&lt;p&gt;11: The screen output begins.&lt;/p&gt;&lt;p&gt;12: The car's model name prints. No new line occurs.&lt;/p&gt;&lt;p&gt;13: Finish the output.&lt;/p&gt;&lt;p&gt;14: Move the cursor down two lines.&lt;/p&gt;&lt;p&gt;15: Extra blanks make your program more readable.&lt;/p&gt;&lt;p&gt;16: Another message prints.&lt;/p&gt;&lt;p&gt;17: cout prints all kinds of data. Strings and an integer output here.&lt;/p&gt;&lt;p&gt;18: This cout outputs strings and a character literal.&lt;/p&gt;&lt;p&gt;19: Statements can be more than one line.&lt;/p&gt;&lt;p&gt;20: Extra blanks make your program more readable.&lt;/p&gt;&lt;p&gt;21: The final return; in main() always returns control back to Visual C++'s QuickWin window&lt;/p&gt;&lt;p&gt;22: A closing brace always terminates the main() function.&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;7: The compiler inserts a helpful file here. &lt;br /&gt;&lt;br /&gt;10: void means that main() does not return a value to the operating system. &lt;br /&gt;&lt;br /&gt;14: endl sends a new line command to the screen.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Output&lt;/p&gt;&lt;ul&gt;&lt;ul&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;I have a Sleekster automobile.  I want to sell my car for $4800 (cheap!).  I have had the car for 5 years.  It's really a grade-A deal!&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-7308432670685094659?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/7308432670685094659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=7308432670685094659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7308432670685094659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7308432670685094659'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/vc-programm-analysis.html' title='VC++ Programm Analysis'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5600094513402978646</id><published>2009-05-24T02:11:00.001-07:00</published><updated>2009-05-24T02:22:30.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VC++ Programm Structure'/><title type='text'>VC++ Programm Structure</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; "&gt;The starting point for C++ programs is the main() function. The previous units showed you some Visual C++ programs. If you look them over, you will see the word main() in every one of them. Looking further still, you will see an opening brace after main() and a closing brace a little later. You never find an opening brace (a left brace) without a closing brace (a right brace). &lt;/span&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;p&gt;Visual C++ programs also share another trait: Almost all of them have one or more lines that begin with the # (pound sign) character, followed by include. Figure 4.1 shows a simple outline of a Visual C++ program. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="javascript:if(confirm('http://pbs.mcp.com/ebooks/0672306379/04vcl01.gif  \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications.  \n\nDo you want to open it from the server?'))window.location='http://pbs.mcp.com/ebooks/0672306379/04vcl01.gif'" tppabs="http://pbs.mcp.com/ebooks/0672306379/04vcl01.gif"&gt;Figure 4.1. An Outline of a simple C++ program&lt;/a&gt;&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Notice that there is a closing brace for every opening brace? There is also a closing parenthesis for every opening parenthesis and a closing bracket for every opening bracket that appears in a program. The parentheses, braces, and brackets enclose language elements within the Visual C++ program. As with parentheses in written languages, these Visual C++ symbols enclose pieces of a program, and you must indicate with the closing character where the piece ends. Unlike a written document, the meaning of parentheses, braces and brackets are quite distinct in C++ and each must be used in the correct way.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Before you know it, you will be comfortable with main(), #include, braces, and all the other parts of a Visual C++ program. The next section looks at a longer Visual C++ program and dissects pieces of it to ease you into Visual C++. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Being able to understand main(), #, and braces is your first step in understanding Visual C++.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;There is no Stop and Type part here due to the textual nature of this section.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E68E33"&gt;&lt;/a&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:180%;color:#0000A0;"&gt;&lt;b&gt;Dissecting a Program&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/concept.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/concept.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Look at the specific parts of a typical Visual C++ program to acquaint yourself with the code.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;The next few pages provide a closer examination of the program in Listing 4.1. The idea is to give you a look at the big picture before getting into the specific language elements starting in Lesson 3. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Listing 4.1. A sample Visual C++ program.&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;// Filename: DISSECT.CPP  // Simple program for you to analyze  #include &lt;iostream.h&gt;  void main()    {      int age, weight;   // These lines define four variables      char initial;      float salary;      age = 13;          // Assigns an integer literal to age      weight = age * 6;  // Assigns a weight based on a formula      initial = 'D';     // All character literals are                         // enclosed in single quotes      salary = 200.50;   // salary requires a floating-point                         // value because it was defined to                         // be a floating-point      salary = salary * 2.5; // Changes what was in salary  // Next line sends the values of the variables to the screen      cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;Keep in mind that this program is simple and does not actually perform a lot of valuable work. Despite its simplicity, you might not fully understand it all even after the explanation that comes next, but it is a good place to begin. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;While looking through the program, see whether you can understand any or all of it. If you are new to programming, you should know that the computer reads each line of the program, starting with the first line and working its way down, until it has completed all the instructions (the statements on each line) in the program. (Of course, you first have to compile and link the program, as described in Lesson 1, before seeing the output from the program on your computer.) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the output that results when you run this program: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;13, 78, D, 501.25&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a name="E69E26"&gt;&lt;/a&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;The Program&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;After the previous unit, you know all about the first two lines in the program. They contain comments that describe the filename and a little about the program. Comments also are scattered throughout the code to explain what happens along the way. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The next line is called a preprocessor directive. It is repeated here: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;#include &lt;iostream.h&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;This strange-looking statement is not actually a Visual C++ command, but it is a directive to the Visual C++ compiler. The directive directs the compiler (that is easy to remember). #include tells Visual C++ to take the filename located inside the angled brackets and load that file into the Visual C++ program at that point. In principle, the preprocessor first reads all the code looking for any lines beginning with a # symbol and acts upon them before compilation takes place. In the case of an #include, the compiler will view the program as if you had typed the contents of the file directly into the program file. In other words, the program grows to become the size of DISSECT.CPP (the program shown in the preceding section) plus IOSTREAM.H. Most files included with #include end in the .H filename extension because these files are header files. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The header file named IOSTREAM.H comes with your Visual C++ compiler. Header files are a way of telling your program about pieces of code that it needs that are extra to the C++ language. Recall that cout was not part of the C++ language. The header file contains the information that lets the compiler know that cout is a function and not just a made up word. The include files are located in your Visual C++ directory in a subdirectory called INCLUDE. If you want to include a file you wrote (all #include files must be text, such as those created with the Visual C++ editor), you have to put the included filename in quotation marks, like this: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;#include "d:\myFiles\mine.h"&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;You might see other header files included, either in addition to IOSTREAM.H or in place of it. Sometimes, Visual C++ programmers use a C program that includes the header file named STDIO.H instead of IOSTREAM.H. Notice in Appendix D, "Visual C++ Command Reference," that #include is not listed with all the other Visual C++ commands. #include is not a Visual C++ command; it is simply a pre-command (hence its name, preprocessor directive) that directs the compiler to do something before it compiles the actual commands. In this case, #include tells Visual C++ to include a file from disk at that point in the program.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E69E27"&gt;&lt;/a&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;Braces and &lt;/b&gt;&lt;b&gt;&lt;i&gt;main()&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;You see these two lines in all of the Visual C++ programs in this book: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;void main()  {&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;The void always goes with main(). Treat the following text as saying void main(). We'll worry about what void means much later on.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;main() does not always appear toward the top of the program, as it does here. Sometimes main() appears farther down into the code. Wherever main() is, however, it begins the most critical section of any Visual C++ program. When you run the program, the program always begins executing at main(). No matter where main() is located in the program, it is the starting point for the program's execution. Therefore, it makes sense to put main() toward the top of a program. Sometimes, however, a lot of other stuff has to go before main(). No matter what appears before main(), main() begins the program's execution when you run the program. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Not all programs written in C++ use main() as the starting point. You will not find a main() in a Windows program. Windows programs use WinMain() because Windows programs work in a way very different from ordinary programs.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;main() is called a function. A function is not a command. It is a named section of a program, and its name always ends with a pair of parentheses. A program can have one function or many functions, but every program contains the main() function because the program has to begin somewhere. You can always tell where a function begins because functions always have names that end with parentheses. The parentheses tell Visual C++ that main() is a function and not a command or something else. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;None of the commands in Appendix D contain parentheses. Parentheses are part of function names, but they are never part of command names.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Because an opening brace follows main(), you can look for the matching closing brace (they always appear in pairs) and find out where main() ends. Every pair of braces in a Visual C++ program encloses something known as a compound statement. In this case, the compound statement is almost as long as the main() function. The next function—if there were one—could go after main()'s closing brace. You can never define a function inside another one. main() must finish before another function can begin being listed in the program. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;A statement ends in a semicolon. A compound statement is made up of a sequence of statements. A compound statement can be used anywhere that a single statement can be used. A compound statement does not need a semicolon following it. A compound statement is often called a block.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Before you get too sidetracked, you are going to become extremely comfortable with the fact that main() is a function and that braces enclose blocks in a program. Read on to learn more about the rest of this sample program named DISSECT.CPP. There are more important aspects to the program at this stage in the game than fully understanding main(). &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;The void before main() is required in simple Visual C++ programs that do not return values to the operating system. You will learn more about void in Lesson 7, "Break it Up With Functions."&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E69E28"&gt;&lt;/a&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;Data&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;Here are the three lines that follow main()'s opening brace: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;int age, weight;   // These lines define four variables  char initial;  float salary;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;definition&lt;/p&gt;&lt;p&gt;A &lt;i&gt;variable&lt;/i&gt; is a named value that holds data that can be changed.&lt;/p&gt;&lt;p&gt;These three lines define four variables. A variable definition tells Visual C++ exactly what variables will be used in the lines that follow. This variable definition tells the compiler to make room in memory for four values, label them with names, and get ready to use them. Later in the program, values will be stored in those variables. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;definition&lt;/p&gt;&lt;p&gt;A &lt;i&gt;constant&lt;/i&gt; is a value that cannot be changed but can be named.&lt;/p&gt;&lt;p&gt;definition&lt;/p&gt;&lt;p&gt;A &lt;i&gt;literal&lt;/i&gt; is an actual constant value stated in the program.&lt;/p&gt;&lt;p&gt;All Visual C++ programs contain both commands and data. The data is always made up of one or more variables, one or more literals, or a combination of both. A literal is sometimes called a constant, but in Visual C++, the word &lt;i&gt;constant&lt;/i&gt; actually has another meaning (in most languages, literal and constant are synonymous). &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;As the name implies, a variable is data that can change (become variable) as the program runs. A constant remains the same. In real life, a variable might be your salary. It increases over time (you hope). A constant is something that does not change, such as the number of days in February or the fact that Pi is 3.14159.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;A variable is like a box inside your computer that holds something. That something might be a number or a character, a value of another variable, or the result of a calculation. Every variable within the same block is distinguished from others by its unique name. No two variables within the same block can have the same name. You can have as many variables as needed to hold changing data. After you define a variable and give it a value, the variable keeps its value until you change the value or define the variable with something else by putting some other data value into it. The next lesson more fully explains these concepts. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The three lines of code that follow the opening brace define four variables. The variable definition informs the rest of the program that two integer variables named age and weight, as well as a character variable named initial and a floating-point variable named salary, appear throughout the program. The terms &lt;i&gt;integer&lt;/i&gt;, &lt;i&gt;character&lt;/i&gt;, and &lt;i&gt;floating-point&lt;/i&gt; basically refer to different types of data. Integers are whole numbers, and floating-point numbers contain decimal places. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just as there are different types of variables, there are different types of constants. The first form of constant you should know is a &lt;i&gt;literal&lt;/i&gt;. For now, you simply have to understand that a Visual C++ literal is any number, character, word, or phrase whose value is explicitly written when it is used and does not change as the program runs. The following are all valid Visual C++ literals: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;5.6  -34  'W'  "Mary"  18.293345  0.0&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;As you can see, some literals are numeric and some are character-based. The single and double quotation marks around two of the literals, however, are not part of the actual literals. A single-character literal requires single quotation marks around it, and a string of characters such as "Mary" requires double quotation marks (often called just quotation marks). &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The body of the DISSECT.CPP program (repeated next) assigns values to the defined variables. &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;age = 13;                // Assigns an integer literal to age  weight = age * 6;        // Assigns a weight based on a formula  initial = 'D';           // All character literals are                           // enclosed in single quotes  salary = 200.50;         // salary requires a floating-point                           // value because it was defined to                           // be a floating-point  salary = salary * 2.5;   // Changes what was in salary&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;The first line puts 13 in the integer variable, age. The second line multiplies 6 by the variable age's value to produce the value 78, which is stored in weight. The multiplication sign (*) in Visual C++ works just as an x does in mathematics. The other primary math operators are shown in Table 4.1. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align="CENTER"&gt;&lt;/p&gt;&lt;center&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Table 4.1. The primary math operators.&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;br /&gt;&lt;center&gt;&lt;table bordercolor="#000040" border="1" cellspacing="2" cellpadding="3"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;i&gt;Operator&lt;/i&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;i&gt;Meaning&lt;/i&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;i&gt;Example&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;+&lt;/td&gt;&lt;td valign="top"&gt;Addition&lt;/td&gt;&lt;td valign="top"&gt;4 + 5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;-&lt;/td&gt;&lt;td valign="top"&gt;Subtraction&lt;/td&gt;&lt;td valign="top"&gt;7 - 2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;*&lt;/td&gt;&lt;td valign="top"&gt;Multiplication&lt;/td&gt;&lt;td valign="top"&gt;12 * 6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;/&lt;/td&gt;&lt;td valign="top"&gt;Division&lt;/td&gt;&lt;td valign="top"&gt;48 / 12&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;&lt;span style="color:#FF0000;"&gt;Use an asterisk (*) for multiplication and not a lowercase x. The computer would confuse the variable name x with the multiplication symbol x if both were allowed.&lt;/span&gt;&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;When mathematical operators appear on the right side of an equal sign, the program completes the math before assigning the result to a variable. In the statement &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;salary = salary * 2.5;   // Changes what was in salary&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;the multiplication of salary and 2.5 is performed, and then the result is stored in salary. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Visual C++ follows math rules by calculating multiplication and division before it calculates any addition and subtraction if a combination appears within the same expression. Therefore, the following produces a result of 8, not 10, because C++ multiplies first, even though addition appears to the left. Lesson 4, "Simple Operators," explains math ordering further.&lt;/note&gt; &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;result = 2 + 3 * 2;   // Stores an 8 in result&lt;/span&gt;&lt;/pre&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E69E29"&gt;&lt;/a&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;Assigning Values to Variables&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;Use an equal sign (=), called the assignment operator, to put values into variables. The statement &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;age = 13;   // Assigns an integer literal to age&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;puts the literal 13 into the variable named age. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;&lt;span style="color:#FF0000;"&gt;Think of an equal sign as working exactly as a left-pointing arrow would. The value on the right of the equal sign moves left into the variable on the left of the equal sign. If there is a formula on the right, Visual C++ computes the answer and moves the answer into the variable on the left side of the equal sign.&lt;/span&gt;&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;In Listing 4.1, you find the following variables: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;age  weight  initial  salary&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Because age is an integer, you should put only integers into it. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;A variable must hold a value that matches the variable's type.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E69E30"&gt;&lt;/a&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;Output to the Screen&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;The line that begins with cout (pronounced "see-out") at first looks very confusing: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;When the program reaches this line, it prints the contents of the four variables on-screen. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The output from the line is &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;13, 78, D, 501.25&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Because there are no other output statements in the program, this line is the only line that produces something you can see when you run the program. The rest of the program either sets up the code (such as main() and the braces) or performs internal data manipulations (such as assigning values to variables). &lt;br /&gt;&lt;/p&gt;&lt;p&gt;cout is not a Visual C++ command, but it acts a lot like one. You will not see cout in Appendix D. cout has no built-in input or output commands. cout is a C++ class, described in the header file IOSTREAM.H. You will learn about classes much later on, but you'll make use of this class earlier because it is so easy to use. cout sends output to an output device, which is usually the screen. There is a special value you can send to cout called endl, which will send a command to start a new line to the screen. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;You can guess at cout's purpose just by looking at the line with cout. The data values are being sent via the double angled brackets (&lt;&lt;)to the cout device. The values following cout go to the screen in the left-to-right order in which they appear. The opposite of cout is cin. cin gets keystrokes from the keyboard. Can you see that the following statement gets a number from the keyboard and stores it in the location called amount?&lt;/note&gt; &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;cin &gt;&gt; amount;&lt;/span&gt;&lt;/pre&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;You have seen that there are two parts to a program: the commands that the program executes, and the data that a program works on. Commands come in two forms: the C++ keywords that the compiler understands implicitly, and extra commands that the compiler can be made to understand with the use of header files. &lt;br /&gt;&lt;br /&gt;&lt;a name="E69E31"&gt;&lt;/a&gt;&lt;/p&gt;&lt;h4 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:130%;color:#0000A0;"&gt;&lt;b&gt;Returning to the Operating System&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;As soon as your Visual C++ program finishes executing, it should return to the operating system so that another program can be run. The return statement at the end of main() ensures that the program returns to the operating system. return is optional when the function is preceded by void, so you do not have to use it for simple returns from functions such as main(). &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The closing brace after the return does two things in this program. It signals the end of a block (begun earlier with the opening brace), which is the end of the main() function, and it signals the end of the program. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Figure 4.2 repeats the entire program listing with some callouts that label the various parts of the program. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="javascript:if(confirm('http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif  \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications.  \n\nDo you want to open it from the server?'))window.location='http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif'" tppabs="http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif"&gt;Figure 4.2. The structure of the simple C++ &lt;/a&gt;&lt;/b&gt;&lt;a href="javascript:if(confirm('http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif  \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications.  \n\nDo you want to open it from the server?'))window.location='http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif'" tppabs="http://pbs.mcp.com/ebooks/0672306379/04vcl02.gif"&gt;&lt;b&gt;program.&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Familiarize yourself with the overall look and feel of this program. It helps to see an overview before diving straight into the specifics of the commands. Now that you have a general understanding of the format of Visual C++ programs, you are ready to tackle the language elements. Good luck with your venture into the world of the Visual C++ language particulars, beginning in the next lesson, "Data Basics." &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Until now, there was no way to present you with an end-of-section Stop and Type analysis because you did not know enough about Visual C++ to see one. From now on, you'll see Stop and Type, Review, Input, Output, and Analysis parts at the end of each section in each unit. You should ignore the line numbers (the numbers followed by colons at the start of the lines). These are not part of the code and are provided simply to allow easy reference to parts of the code.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/stop.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/stop.gif" /&gt;Listing 4.2 contains another Visual C++ program that you can study in order to find the common elements mentioned in this unit. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;All C++ programs have similarities. Their structure is the same even though they often do very different work.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Listing 4.2. A Visual C++ program for review.&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;1:  // Filename: VARS.CPP  2:  // All programs share common traits  3:  4:  #include &lt;iostream.h&gt;  5:  6:  void main()  7:  {  8:    char c;             // Define all variables before  9:    int i;              // you use them  10:    float f;  11:  12:    // The next few lines store literal values  13:    // in the three variables just defined  14:    c = 'W';  15:    i = 64;  16:    f = 12.57;  17:  18:    // Print the values  19:    cout &lt;&lt; "c is " &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;Output &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;c is W, i is 64, f is 12.57&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Analysis&lt;/p&gt;&lt;p&gt;Lines 1 and 2 are comments that describe the program's filename and a one-line statement about the program. Line 4 is a preprocessor directive that includes a file needed by the rest of the program. For the time being, include this file in all your Visual C++ programs. Later lessons will explain it in more detail. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;You'll find several blank lines scattered throughout the code, such as lines 3, 5, and 11. Visual C++ ignores the blank lines, but the whitespace helps you read the program. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;All programs have a main() function. You can always tell when a word in a C++ program is a function because of the parentheses that follow the name. All functions open with an opening left brace as shown in line 7. The matching right brace, and therefore the main() function, does not end until line 24. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Not all programs in this book will begin with void preceding main(). Until Lesson 7 explains how and when to use void, follow this book's lead: Use it when you see it, and don't use it when you write your own programs until you understand what void is all about.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Lines 8, 9, and 10 define three variables of three data types. The next lesson explains variables and data types in lots of detail. The important thing to note here is that you must define all variables before you use them. When you define the variables as done in lines 8 through 10, you tell C++ that you want those variables created. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Lines 14 through 16 put values in the three variables defined earlier. Until you put values in variables, you should not use those variables. Unlike some other programming languages, C++ does not place zeros in variables before you use them. Therefore, they will contain garbage or random values. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Lines 19 and 20 are actually one single C++ statement that takes two lines. The cout produces the output shown after the program listing. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;You will understand all of these program details as you progress in this book. For now, try to get familiar with these concepts and see whether you can learn to spot common elements across C++ programs. &lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5600094513402978646?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5600094513402978646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5600094513402978646' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5600094513402978646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5600094513402978646'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/vc-programm-structure.html' title='VC++ Programm Structure'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-2077582071006445060</id><published>2009-05-24T02:11:00.000-07:00</published><updated>2009-05-24T02:12:15.912-07:00</updated><title type='text'>The Syntax of Visual C++ Comments</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;note&gt;Begin all comments with two slashes, //.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;In computer lingo, language syntax refers to the spelling of commands, the ordering of special characters, and the placing of the language elements. When you learn the syntax for a Visual C++ command or operation, you learn the exact format required so that Visual C++ knows what you want it to do. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Comments are so important that you are now going to learn the syntax of comments (how to write comments so that Visual C++ knows that they are comments) before you learn any Visual C++ commands. Use comments abundantly so that someone reading your program later has a clear guide to the program's contents. A Visual C++ programmer might be able to trace through your Visual C++ code and figure out what the program does, but comments speed the process. The faster someone understands your code, the faster he or she can make any needed changes and move on to other projects. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;A comment begins with two forward slashes, sometimes called a double slash. Comments extend to the end of the line. In other words, you cannot have a command, a comment, and then another command all on the same line. Here is an example of a Visual C++ line with a comment: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;return ((a &gt; b)?a:b);  // Grabs the larger of two values&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Here is the same line without the comment: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;return ((a &gt; b)?a:b);&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;With a comment, you don't even have to know Visual C++ in order to know what the statement is doing. Without a comment, as you can see, the statement looks like garbage characters that make no sense. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The double slash is vital: without it, Visual C++ would refuse to accept the line. Even though return ((a &gt; b)?a:b); is a valid Visual C++ command, if you left out the double slash comment signal, Visual C++ would see the words Grabs the larger of two values and not know what to do with them. After all, Visual C++ does not know English; it knows only C++. The comment is there not for Visual C++ but for a person looking through your program. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Comments can reside on lines all by themselves. Sometimes you use comments for more than one program statement. Comments are useful for describing a section of several lines in a program and for putting in program notes about the programmer and the program. For example, the following small Visual C++ program contains two lines of comments that extend the entire line length, as well as three additional comments to the right of Visual C++ code. &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;// Filename: COMAVGE.CPP  // Program to compute the average of three values  #include &lt;iostream.h&gt;  void main()    {      float g1, g2, g3;   // Variables to hold student grades      cout &lt;&lt; "What grade did the first student get? ";      cin &gt;&gt; g1;      cout &lt;&lt; "What grade did the second student get? ";      cin &gt;&gt; g2;      cout &lt;&lt; "What grade did the third student get? ";      cin &gt;&gt; g3;      float avg = (g1 + g2 + g3) / 3.0;   // Computes average      cout &lt;&lt; "The student average is " &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;All of the programs on this book's program disk are stored under a separate filename. You must tell your Visual C++ compiler the program's filename before it can load the program into memory and run it. To help you quickly try the examples throughout this book, a comment on the first line of every program contains the name of the program as it is stored on the disk. For instance, you can load the preceding program from the book's program disk by retrieving the file named COMAVGE.CPP. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Many companies require their programmers to put their names in comments at the top of programs they write. If someone later has a question about the program, the original programmer can be traced. If several people make changes to a program, they often put their names too, with a brief comment about the changes they made. Because all these types of lines are commented, Visual C++ skips over them, as it should. Often, they also put a brief description of what the program is supposed to do at the beginning. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Scatter comments throughout a program as well. If you write some tricky code that needs explanation, spend a few lines of comments, if needed, explaining what the next few lines of code do. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Be proud of yourself! You do not yet know one bit of Visual C++ code, yet you understand exactly what the preceding program does. That's the purpose of comments! They document a program so that you don't have to go through tedious code to learn what parts of the program are doing.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;A Visual C++ programmer usually can understand what a simple Visual C++ program is supposed to do, even if the program has no comments at all. As soon as you learn the Visual C++ language, you will be able to look through straight Visual C++ code, with no comments, and make changes that need to be made. The comments simply help describe what the program is doing. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Comments begin with // and extend to the end of the line. You can put comments on lines by themselves or at the end of other C++ code.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E68E28"&gt;&lt;/a&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:180%;color:#0000A0;"&gt;&lt;b&gt;Comments Are For You, Too&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/concept.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/concept.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Even if you write programs that you will maintain yourself, you'll need comments.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Suppose that you write programs for your own use and amusement. Nobody but you will ever see the Visual C++ code you write. Can you think of why you should take the time to add comments to your own programs? There are plenty of reasons. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Suppose that you write a Visual C++ program to track your bank records. A year later, your bank allows for automatic transfers of utility bill payments straight from your savings account. Your old program no longer suffices for the new banking system, so you get the Visual C++ code out and begin making changes. However, you can't remember what you did before, and the code is so succinct that it is difficult to follow. Luckily, you put comments in the code, so you read through the program until you get to the place you need to change. As soon as you are there, you know what is going on in the code, and you quickly make the changes. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Get into the habit of commenting as you write programs. Many people write programs without commenting as they go, thinking that they will add comments later. More often than not, the comments never get added. When program maintenance is required, it takes twice as long to change the code as it would if the programmer had added comments during the original programming phase. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;As important as comments are, you can over-comment a program. Add comments to lines only when the program's code warrants it. You see many more comments in the first few programs in this book than you see later. As you learn the simple commands, this book attempts to clarify them through extra comments in the program listings. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Nevertheless, redundant comments are as bad as no comments at all. For example, even though you know nothing about Visual C++ commands, you might agree that the following code contains worthless comments: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;totalsales = oldsales + newsales;   // Adds the old sales and                                      // the new sales to get                                      // total sales  cout &lt;&lt; "Happy Birthday";   // Sends the Happy Birthday                              // message to the cout  return;   // Return&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Each of these comments is redundant, and they really do not explain what is going on any more than the Visual C++ code itself. However, consider this statement: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;for (int ctr = 10; ctr &gt; 0; ctr) // Prints the numbers    {                              // from 10 to 1      cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;Although you don't know Visual C++ (and even if you did), you can see that the purpose of these two lines of code is hidden in the cryptic Visual C++ language. A Visual C++ programmer could figure out this code, but the comment makes it effortless. As you saw in the previous three code fragments, comments often span more than one line. Continue a comment on the next line (remembering to use a double slash) if it is too long to place on a single line. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;It is also useful to describe in your comments why your program is doing something. In the previous snippet, it would be obvious to a C++ programmer that the program was putting the numbers on the screen. If this was part of a graph drawing program, it might be more helpful to comment it like this: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;//  //  Display the range of the graph on the screen  //  for (int ctr = 10; ctr &gt; 0; ctr)     {      cout &lt;&lt;&gt;&lt;/pre&gt;&lt;p&gt;Now you understand why the program has a piece of code in it. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;After writing a program, you'll need comments even if you maintain the program yourself. Use comments only when they help explain what is going on in the code.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;a name="E68E29"&gt;&lt;/a&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span style="font-size:180%;color:#0000A0;"&gt;&lt;b&gt;C-Style Comments&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/concept.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/concept.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Visual C++ supports your use of the old C-style comments that begin with /* and end with */.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Visual C++ supports another kind of comment that you might see occasionally. Visual C++ is based on the C language, but Visual C++'s comment syntax differs from C's. The designers of Visual C++ decided to keep the old C-style comment syntax so that C programs would work, with little or no change, with Visual C++ compilers. Nevertheless, the double slash comments are considered superior. You should learn C comments just in case you see them. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;A comment in C begins with the characters /* and ends with the characters */. Unlike with Visual C++ comments, you must end a C comment. If you do not put the ending */, C assumes that the next line (or the next hundred lines) is still a comment until it finally finds another */. The following line contains a C-style comment: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;char name[25];   /* Reserves space for a 25-character name */&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Because a C comment ends only when the */ is reached, the following three lines make up a single comment: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;/* The following program calculates stock statistics  using the most modern technical analysis techniques  available. */&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Of course, the three lines could also be commented like this: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;/* The following program calculates stock statistics */  /* using the most modern technical analysis techniques */  /* available. */&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Although you should become familiar with C comments, true Visual C++ programmers tend to avoid using them. The double slash is easier because you don't have to remember to end the comment. The C-style comments can be error-prone as well. If you embed one C-style comment within another, Visual C++ gets confused. Stay with Visual C++ comments as much as possible, and both you and your Visual C++ compiler will lead healthier and more productive lives. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;C comments can be dangerous if you accidentally embed one within another. Stick to C++'s // comment style. There might be times, however, when you run across C comments in a C++ program and you should understand their format.&lt;/note&gt; &lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-2077582071006445060?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/2077582071006445060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=2077582071006445060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2077582071006445060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2077582071006445060'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/syntax-of-visual-c-comments.html' title='The Syntax of Visual C++ Comments'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-4854164283134042010</id><published>2009-05-24T02:10:00.000-07:00</published><updated>2009-05-24T02:11:20.572-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Comments'/><title type='text'>Comments</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Provide readable comments that explain in plain language (non-C++) what's going on.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Suppose that your car breaks down in the middle of nowhere with no other cars in sight. The problem is not tools or parts; they are in the trunk. The problem is that you know absolutely nothing about the car, and when you open the trunk, you have no clue as to where the parts go or how to fix the problem. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just about to despair, you glance down and see two car repair books in the trunk. You pick up the first one and realize that it is a book written by advanced, expert mechanics for advanced, expert mechanics. The book uses technical jargon you've never heard. You toss the worthless repair book over your shoulder and pick up the next book. The title is &lt;i&gt;Car Repair for the Un-Mechanic&lt;/i&gt;. Glancing through the opening pages, you begin to smile. The second book assumes that you don't know a rotor widget #4 from a tactile stem #3B-7. The second book explains, in uncluttered and nonmechanical language and with a friendly style, exactly how to fix your problem. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;You find that the second book contains the very same facts that the first one does. Of course, the first book does not help your plight one bit. It teaches you nothing and explains nothing. It assumes that you know enough to write the book yourself. The second book explains every concept in easy-to-understand language, and in 10 minutes, you fix the car just in time to drive to the cafe across the street for dinner. (You thought you were in the middle of a desert or something?) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Which of the following is true of this car story: &lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;It has a point to it. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;It mistakenly got mixed in with this book at the printer. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;It proves that this book's author cannot focus on one subject for very long. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Obviously, the story has a point (and also hints at number 3). The point is that people react much better to material that is not technically above their heads. Of course, any subject is easy if it is explained well enough. If thermonuclear space transportation were explained in a simple manner, you could understand it. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;By their very nature, Visual C++ programs are cryptic, even to established C++ programmers. As the previous lesson explained, programs rarely remain in one form. The life of a programmer includes not only writing new programs, but updating programs written earlier. As you write a Visual C++ program, add whitespace so that the program is easier to read. Even more important, add comments as well. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Comments are not Visual C++ commands. As a matter of fact, Visual C++ ignores any and all comments in your programs. Comments are nothing more than messages that explain what the program does. Comments are for people, not for the computer. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;If your Visual C++ programs contain only Visual C++ code and no comments, they will be virtually impossible to figure out later. Remember that Visual C++ is cryptic and extremely difficult to read. Many companies that employ programmers require that their programmers put comments throughout every program they write. Why do you think these companies require comments? It is because people change, jobs change, and companies must ensure that a program written by one person can be understood by the next person.&lt;/note&gt; &lt;br /&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-4854164283134042010?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/4854164283134042010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=4854164283134042010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4854164283134042010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4854164283134042010'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/comments.html' title='Comments'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-4294020610188049782</id><published>2009-05-24T02:09:00.000-07:00</published><updated>2009-05-24T02:10:08.462-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Freeform Style'/><title type='text'>Freeform Style</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;C++'s freeform style lets you insert spacing and blank lines throughout your code to help make the program more readable.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;definition&lt;/p&gt;&lt;p&gt;&lt;i&gt;Whitespace&lt;/i&gt; consists of the blank lines and indentations you add to code.&lt;/p&gt;&lt;p&gt;Most of the time, you can put lots of spacing in a Visual C++ program and C++ will not complain. You can put whitespace between symbols and the words that make up the C++ language (but you can't split up words with spaces). C++ programmers often put extra spaces and blank lines in programs to make the programs more readable. With whitespace, C++ programmers make C++ programs more readable to people, not to the Visual C++ compiler. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;To your Visual C++ compiler, the following program is exactly the same program as the previous one you saw: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;//Filename:CFIRST.CPP//Program displays a message on-screen  #include &lt;iostream.h&gt;  void main(){cout&lt;&lt;"I will be a C++ expert!";}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;definition&lt;/p&gt;&lt;p&gt;&lt;i&gt;Freeform&lt;/i&gt; means that C++ lets you insert as many spaces and lines as you want.&lt;/p&gt;&lt;p&gt;Which is easier for you to read, the first or the second version of the program? Obviously, the first version is. Visual C++ is called a freeform compiler. You can indent lines of the program, or leave all the lines flush left. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Because your computer is a machine, it does not require extra whitespace to understand a program. As long as you follow all the coding rules of Visual C++, the compiler will be happy with the code you supply. In spite of the Visual C++ compiler's lack of concern for how nice a program looks, you should be concerned about the program's look. Add extra whitespace to group similar lines of code together and make the program easier to understand for people who read the program. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;As you see other programs throughout this book, you will begin to pick up some C++ whitespace conventions and develop some of your own.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;&lt;b&gt;Programs Always Change&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;While you write Visual C++ programs, consider that someday you might have to change those programs or somebody you work with will have to. You could squeeze as much space out of a program as possible, but you will gain nothing from doing so. (You might save a few characters of computer memory, but not enough to make up for a messy program.) &lt;br /&gt;&lt;br /&gt;If you add extra whitespace to make the program more readable to people, the program will be easy to modify in the future. In this ever-changing world, programs have to be modified to reflect those changes, and the person who writes more readable code gets hired for programming jobs faster than one who does not care about program readability. Updating and changing programs is called maintaining programs. A maintainable program is a readable program.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;If you are confused now, you are right on track! You still do not have to understand any specifics about the two program listings seen so far. This unit is getting you used to the look and feel of Visual C++ programs, not their particulars. If you understand that Visual C++ is picky about the characters you type, and if you realize that a program should be readable to people, you deserve an A+ for the unit so far. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;The C++ freeform language allows for as much whitespace as you want to add.&lt;/note&gt; &lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-4294020610188049782?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/4294020610188049782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=4294020610188049782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4294020610188049782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4294020610188049782'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/freeform-style.html' title='Freeform Style'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-7241821924593869363</id><published>2009-05-24T02:08:00.001-07:00</published><updated>2009-05-24T02:09:33.085-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++ Special Characters'/><title type='text'>Visual C++ Special Characters</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/h3&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;note&gt;C++ is a language rich in special characters.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Visual C++ is one of the few programming languages that uses almost every key on your keyboard. Visual C++ is picky about the keys you press. Notice that the program in the preceding section contains a left and a right brace, { and }. If you were to use parentheses, ( and ), or square brackets, [ and ], in place of the braces, Visual C++ would complain. Make sure that you also distinguish between left and right angled brackets, &lt;&gt;, as well as the forward slash, /, and the backslash, \. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Be extremely careful to use the characters you are supposed to use. Computers are precise machines without as much tolerance for typing ambiguities as people have. Throughout &lt;i&gt;Visual C++ Programming in 12 Easy &lt;/i&gt;&lt;i&gt;Lessons&lt;/i&gt;, you will learn when to use each of the characters and what they mean. Until then, be very careful to type the correct characters. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Visual C++ distinguishes between a capital letter &lt;i&gt;O&lt;/i&gt; and a number &lt;i&gt;0&lt;/i&gt; (zero). Also, a lowercase letter &lt;i&gt;l&lt;/i&gt; will not substitute for a number &lt;i&gt;1&lt;/i&gt;. Because you're dealing with a machine, you should type numbers when C++ wants numbers, letters when C++ wants letters, and exact special characters (characters that are neither letters nor numbers, such as brackets and the plus sign) when C++ wants them. &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-7241821924593869363?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/7241821924593869363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=7241821924593869363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7241821924593869363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7241821924593869363'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/visual-c-special-characters.html' title='Visual C++ Special Characters'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-3933150579296499323</id><published>2009-05-24T02:08:00.000-07:00</published><updated>2009-05-24T02:09:02.662-07:00</updated><title type='text'>Simple Visual C++ Program</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h3 align="CENTER"&gt;&lt;center&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 160); font-size: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/center&gt;&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/concept.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/concept.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Enter and run a simple Visual C++ program and discuss the code and results.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/stop.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/stop.gif" /&gt;Here is a Visual C++ program. Although it is extremely simple, it contains all the elements necessary to be a valid Visual C++ program. &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;// Filename: CFIRST.CPP  // Program displays a message on-screen  #include &lt;iostream.h&gt;  void main()    {      cout &lt;&lt; "I will be a C++ expert!";    }&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Even a simple Visual C++ program might intimidate a beginning programmer. Do not let it intimidate you! C++ has a bark that is often worse than its bite. If you were to type this program into your Visual C++ compiler's editor, compile it, and run it, you would see the following output on your screen: &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;I will be a C++ expert!&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;At this point, do not concern yourself with the specifics of the code in this program. The rest of this book explains things like that. Only one line in the entire seven-line program does anything noticeable (the one that begins with cout), and the rest of the program is simply there because C++ needs it to be there. You will find out why as you work through the unit. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;The preceding program contains a total of seven lines, and only one really produces something you can see. More advanced Visual C++ programs might consist of 500 lines or more. That 7-to-1 setup-to-work ratio does not exist for every Visual C++ program. That would cause too much work on your part! The amount of code that sets up the program diminishes as a program grows.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;img src="file:///C:/books/Edu/C%20C++%20VC++/VC++In12Lessons/review.gif" tppabs="http://pbs.mcp.com/ebooks/0672306379/review.gif" /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;C++ programs sometimes look cryptic, but when you learn the fundamentals of the language, you'll see that program formats are often similar. A simple program might contain several lines of code.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;There are no Stop and Type parts in this unit due to the textual nature of the material.&lt;/note&gt; &lt;br /&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-3933150579296499323?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/3933150579296499323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=3933150579296499323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/3933150579296499323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/3933150579296499323'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/simple-visual-c-program.html' title='Simple Visual C++ Program'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5330674281324216201</id><published>2009-05-24T02:06:00.000-07:00</published><updated>2009-05-24T02:08:20.399-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming with Visual C++'/><title type='text'>Programming with Visual C++</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;p&gt;the fundamentals of the Visual C++ compiler and how to enter and edit programs using Visual C++'s workbench. You saw the following: &lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Introduction to programming concepts &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;How C++ compares to other languages &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Starting Visual C++ &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Using Visual C++'s menus &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;How to enter and edit Visual C++ programs &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;How to compile Visual C++ programs &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Stopping Visual C++ &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;This project reviews entering and editing a Visual C++ program using the workbench. You are not expected to understand how the program works. The format of future projects will concentrate much more on Visual C++'s language specifics using a different project format.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;Step 1: Start Visual C++. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Before using Visual C++, you must start the workbench. Follow these steps: &lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Turn on your computer. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Start Windows by typing WIN (if it does not automatically start Windows). &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;For Windows 3.1, choose the program group Microsoft Visual C++. Double-click on the icon titled Visual C++. &lt;br /&gt;&lt;br /&gt;For Windows 95, click on the Open button, choose Programs from the popup menu, and select Microsoft Visual C++. Click on Visual C++. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Step 2: Open a program window. &lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;The Visual C++ workbench is known as an MDI application. You enter and edit programs in one or more windows that appear in the workbench. Before typing a new program, you must open a new file in a new window. Type Alt+F,N (File New) to open a new file in an editing window. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;Although I describe keystrokes to issue the commands, feel free to use the mouse to select menu options. Neither is a better way to use Windows; just use the way that is easiest for you.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Type the following program. When typing the program, be sure to press Enter at the end of each line (including the very last line). Type as accurately as possible so that no mistakes appear later. The program takes more lines than will fit in the workbench editing window, so you'll see the workbench scroll downward when you fill the open window. &lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#000080;"&gt;&lt;b&gt;Project 1 Listing. The Visual C++ project program.&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;// Filename: PROJECT1.CPP  // Prints the first 20 odd, then even, numbers.  // Once done, it prints them in reverse order.  #include &lt;iostream.h&gt;  void main()    {      int num;   // The for loop control variable      cout &lt;&lt; "The first 20 odd numbers:\n";      for (num = 1; num &lt; num =" 2;" num =" 39;"&gt;= 1; num -= 2)        { cout &lt;&lt; num =" 40;"&gt;= 2; num -= 2)        { cout &lt;&lt;&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;When you finish typing the complete program, you can use PageUp, PageDown, and the arrow keys to scroll the top of the program back into view. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Step 3: Compile and run the program. &lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Before running the program, you must compile it. Choose Project | Build, (Shift+F8) which is an alternative to Project | Execute when you know the program needs to be made. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If errors appear, the status bar will display an error count. Pressing F4 guides you through the code and leaves you near where the errors are. You can fix any errors that might appear. Recompile the program when you type it exactly as the listing shows. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If no errors appear, the error count will be zero and you can then press Ctrl+F5 to execute the program. Here is what you'll see in the QuickWin window: &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color:#000080;"&gt;The first 20 odd numbers:  1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39  The first 20 even numbers:  2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40  The first 20 odd numbers in reverse:  39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1  The first 20 even numbers in reverse:  40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Close the output window and return to the workbench's editing window (use Alt+Tab or click on the workbench window if you do not directly return to the workbench). &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Step 4: Save your work. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you exit Visual C++ without saving your program, you'll lose the program and have to reenter it in order to see the results again. Therefore, you'll want to save your programs to a disk file. &lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;hr align="CENTER"&gt;&lt;br /&gt;&lt;note&gt;All of the programs in this book, including the one shown in Listing 1, are stored on the enclosed program disk. You don't have to save this listing unless you want the practice, because it is already on the disk.&lt;/note&gt; &lt;br /&gt;&lt;hr align="CENTER"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;ol&gt;&lt;li&gt;To save a program, select Alt+F,S (for File Save). You'll see the File Save dialog box appear on the screen. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Type a program name along with a path name if you want to store the program in a subdirectory. All Visual C++ programs should end with the .CPP filename extension. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Step 5: Exit Visual C++. &lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Select Alt+F4 (for File Exit) to close Visual C++. If you did not save your program, Visual C++ tells you with a final dialog box that gives you one last chance to save the program. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;After saving the program, you can exit Visual C++ and switch off your PC. You should always return to DOS with Windows 3.1 or shut down your PC under Windows 95 before powering off your computer. &lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5330674281324216201?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5330674281324216201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5330674281324216201' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5330674281324216201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5330674281324216201'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/05/programming-with-visual-c.html' title='Programming with Visual C++'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5325281776433924169</id><published>2009-04-01T03:59:00.000-07:00</published><updated>2009-04-01T04:00:15.346-07:00</updated><title type='text'>ATL Server Project</title><content type='html'>&lt;p&gt;This project shows how to access a database from web, A online store is used as an example. On executing the application, a Web page comes up and asks you for a username and password. You can create a new account or enter a username and password for an existing customer in the database, in first case the application will write the new username and password to the database.&lt;/p&gt; &lt;p&gt;Building and Running the Sample&lt;br /&gt;To build and run this sample&lt;br /&gt;Open the solution file, Tutorial.sln, in the Visual Studio development environment.&lt;/p&gt; &lt;p&gt;Build the solution. This will also deploy the solution to the local Web server.&lt;/p&gt; &lt;p&gt;Configure the data link to connect to the Tutorial.mdb database. In the sample's Tutorial\Tutorial\bin directory, double-click Tutorial.udl. &lt;/p&gt; &lt;p&gt;The Data Link Properties dialog box appears. &lt;/p&gt; &lt;p&gt;On the Provider tab, select Microsoft Jet 4.0 OLE DB Provider.&lt;/p&gt; &lt;p&gt;On the Connection tab, click the Ellipsis (...) button to specify the Tutorial.mdb file in the Tutorial\Tutorial\bin directory. Leave the username and password blank.&lt;/p&gt; &lt;p&gt;Ensure that Tutorial.mdb is not read-only. Right-click the file and select Properties. On the General tab, ensure that the Read-only check box is cleared.&lt;/p&gt; &lt;p&gt;Change the NTFS security settings on the Tutorial.mdb file to allow read-write access by the Internet Guest Account, IUSR_Machine. To do this: &lt;/p&gt; &lt;p&gt;Right-click the Tutorial.mdb file and select Properties on the shortcut menu.&lt;/p&gt; &lt;p&gt;In the Properties dialog box, select the Security tab and click Add. &lt;/p&gt; &lt;p&gt;The Select Users or Groups dialog box appears; in that dialog box, set the following: &lt;/p&gt; &lt;p&gt;Object Types to Users. &lt;/p&gt; &lt;p&gt;Locations to the local machine. &lt;/p&gt; &lt;p&gt;Check Names to IUSR_Machine. &lt;/p&gt; &lt;p&gt;Select the Internet Guest Account that you just created. In the Permissions box, select the Read and Write boxes if they are not already selected. &lt;/p&gt; &lt;p&gt;Note&lt;br /&gt;See ATL Server Security for information about the accounts used by a typical ATL Server application running in IIS.&lt;/p&gt; &lt;p&gt;Change the NTFS security settings on the folder containing Tutorial.mdb to allow only write access by IUSR_Machine, using the procedure described in Step 7.&lt;/p&gt; &lt;p&gt;Change the NTFS security settings on the Tutorial.udl file to allow read access by the IUSR_Machine account, using the procedure described in Step 7.&lt;/p&gt; &lt;p&gt;Use a Web browser to view &lt;a href="http://localhost/tutorial/login.srf." rel="nofollow"&gt;http://localhost/tutorial/login.srf.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;for source file - &gt; &lt;a href="http://www.technicalcontents.com/visualc"&gt;http://www.technicalcontents.com/visualc&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5325281776433924169?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5325281776433924169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5325281776433924169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5325281776433924169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5325281776433924169'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/04/atl-server-project.html' title='ATL Server Project'/><author><name>sandy</name><uri>http://www.blogger.com/profile/02503582209971047801</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-1645843715013992585</id><published>2009-02-24T22:51:00.000-08:00</published><updated>2009-02-24T22:53:53.545-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++ Audio turorial'/><title type='text'>Visual C++ Audio turorial on MFC, COM, Win32</title><content type='html'>&lt;a href="http://www.esnips.com/web/Vc++FastPub"&gt;&lt;br /&gt;Click here to access audio files....&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-1645843715013992585?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/1645843715013992585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=1645843715013992585' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/1645843715013992585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/1645843715013992585'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2009/02/visual-c-audio-turorial-on-mfc-com.html' title='Visual C++ Audio turorial on MFC, COM, Win32'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5289193366500904394</id><published>2008-12-11T23:25:00.000-08:00</published><updated>2008-12-22T20:48:13.972-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Guide to Using the Visual C++  Debugger</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves&gt;false&lt;/w:TrackMoves&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1132868807; 	mso-list-template-ids:1788013572;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-fareast-language:ZH-CN;} &lt;/style&gt; &lt;![endif]--&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: normal;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;&lt;span style=""&gt;1.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;Write your program, and make sure it compiles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: normal;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;&lt;span style=""&gt;2.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;Set a breakpoint in your code. Do this by clicking the cursor on the line that you want to set the breakpoint and then press the "set breakpoint" button. (You can also set a breakpoint using the right mouse button)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.5in; line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;&lt;br /&gt;You may want to set the breakpoint at an early place in your code so that you can step through the whole program, or there may be a specific place where you want to start stepping through your program.&lt;br /&gt;&lt;br /&gt;Note that it is possible to choose a line of code where Visual C++ can not stop. If this is the case it will automatically be moved down to the next valid line of code. (One place where Visual C++ does not seem to be able to stop is a declaration where you do not initialize the variable) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: normal;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;&lt;span style=""&gt;3.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;Now under the build menu choose "Rebuild All". This is necessary to force Visual C++ to recompile your code and add debugging information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: normal;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;&lt;span style=""&gt;4.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;Now click the "go" button. The program will run until your first breakpoint.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;Now that you've started the debugger what can you do?&lt;/span&gt;&lt;/b&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_2" spid="_x0000_i1025" type="#_x0000_t75" alt="http://elvis.rowan.edu/%7Ekay/gif/debug_buttons.gif" style="'width:441pt;"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" title="debug_buttons"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "step over" button allows you to execute the statement that the arrow is pointing at&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "step into" button executes the "sub-steps" that the statement the arrow is pointing at represents. If you are pointing at a function call, you will enter the function. This can be very confusing if you are pointing at a cin command and you go into the code for cin. To get back out of the function, push the "step out" button.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "step out" button completes the running of the function you are in and takes you back to the next line of code after the function call&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "restart" button will start running your code again from the beginning&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "run to cursor" button runs your program up to the line where the cursor is flashing&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "stop debugging" button stops the debugger and puts you back into editing mode&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;The "quick watch" button allows you to check the value of a variable.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt;You can also force the system to let you watch the value of a variable as it changes by clicking under the word "name" in the bottom right hand corner of the screen and entering a variable name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:13;"  &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5289193366500904394?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5289193366500904394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5289193366500904394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5289193366500904394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5289193366500904394'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/guide-to-using-visual-c-debugger.html' title='Guide to Using the Visual C++  Debugger'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-3783254961873822598</id><published>2008-12-11T23:23:00.000-08:00</published><updated>2008-12-22T20:58:09.429-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Removing a program from your project</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"MS Mincho"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 16pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you want to write a new program, you must first remove the old one from the project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click on the File View Tab&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;(It may just have a picture of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;a piece of paper)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;First&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click once on the + sign next to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Next&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CSandPTextProject files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Removing a program from your project Page 2 of 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click once on the + next to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Source Files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Removing a program from your project Page 3 of 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click once on the name of your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;current program (to highlight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;it) and then push the delete&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;This DOES NOT delete your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;program, it simply removes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;it from the project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;At this point you may click&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;on the X to close the window&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;showing you your program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;file. (Be sure your program&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;file has been saved before&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;doing so!) (You can save the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;program by clicking on the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;program window and then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;selecting File -&gt; save&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-3783254961873822598?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/3783254961873822598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=3783254961873822598' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/3783254961873822598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/3783254961873822598'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/removing-program-from-your-project.html' title='Removing a program from your project'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-7108381196195531219</id><published>2008-12-11T23:22:00.001-08:00</published><updated>2008-12-22T20:58:09.429-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Compiling and Running Your Visual C++ 6.0 Project</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"MS Mincho"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 16pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Compiling and linking your project:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;. Click on &lt;b&gt;&lt;i&gt;Build/Rebuild All&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If it compiles and links&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;successfully, the window at the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;bottom of your screen will&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;display 0 error(s), 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;warning(s)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Compiling &amp;amp; Running your VC6.0 Project Page 2 of 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;To run your program:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click on &lt;b&gt;&lt;i&gt;Build/Execute HelloWorld.exe.&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The following output window should be displayed. When I press any key, the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;window will be taken down and the program will stop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Saving the project:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click on &lt;b&gt;&lt;i&gt;File/Save All.&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Closing the project:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click on &lt;b&gt;&lt;i&gt;File/Close Workspace.&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Compiling &amp;amp; Running your VC6.0 Project Page 3 of 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What if I have compiler errors?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If you have compiler errors, click the mouse in the window at the bottom of your screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;If necessary scroll to the top of this window to see your first error message. Click on the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;error message. It will be highlighted. Double Click on the message. The statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;corresponding to the error message will be preceded by a blue arrow in the coding&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;window. In this case I simply typed &lt;i&gt;ct &lt;/i&gt;instead of &lt;i&gt;cout&lt;/i&gt;. Return to the coding window and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;correct the error. Recompile the program.&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-7108381196195531219?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/7108381196195531219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=7108381196195531219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7108381196195531219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/7108381196195531219'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/compiling-and-running-your-visual-c-60.html' title='Compiling and Running Your Visual C++ 6.0 Project'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-780692155190598894</id><published>2008-12-11T23:20:00.000-08:00</published><updated>2008-12-22T20:58:09.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Creating a new program in an existing visual C++ project</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"MS Mincho"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 16pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;We now want to code the C++ program. To do this we have to create a new file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Choose &lt;b&gt;&lt;i&gt;File/New&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Creating a new program in an existing visual C++ project Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;2 of 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you are finished writing your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;code, choose: &lt;b&gt;&lt;i&gt;File/Save.&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Choose C++ Source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;File&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Be sure the project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;name is the name of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;the current project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Enter the name of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;your source file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;(HelloWorld.cpp)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Be sure the saving&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;location is correct&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Click on &lt;b&gt;&lt;i&gt;OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Enter your C++ source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;code into this window.&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-780692155190598894?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/780692155190598894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=780692155190598894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/780692155190598894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/780692155190598894'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/creating-new-program-in-existing-visual.html' title='Creating a new program in an existing visual C++ project'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-1144404316762725212</id><published>2008-12-11T23:17:00.000-08:00</published><updated>2008-12-22T20:58:09.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Starting up visual C++ 6.0 after you have used it before (i.e. how to get your old "desk" back)</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;1) Start visual C++ 6.0&lt;br /&gt;2)  From the File Menu, click on "open workspace"&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;IMPORTANT NOTE&lt;/span&gt;: in the file menu, there are two commands that have the word open in them, you want "open workspace" not just "open"&lt;/li&gt;&lt;/ul&gt; 3) Find your old workspace. In my class that means selecting your "H" drive from the pull down menu, and then navigating to your &lt;span style="font-weight: bold;"&gt;"intro" &lt;/span&gt;folder, then into your &lt;span style="font-weight: bold;"&gt;"intro_text_project" &lt;/span&gt;folder, and then double clicking on the &lt;span style="font-weight: bold;"&gt;"intro_text_project.dsw"&lt;/span&gt; file.&lt;br /&gt;&lt;br /&gt;Now your project is open and you're ready to continue.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-1144404316762725212?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/1144404316762725212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=1144404316762725212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/1144404316762725212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/1144404316762725212'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/starting-up-visual-c-60-after-you-have.html' title='Starting up visual C++ 6.0 after you have used it before (i.e. how to get your old &quot;desk&quot; back)'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-5588199726168286258</id><published>2008-12-11T23:12:00.000-08:00</published><updated>2008-12-22T20:58:09.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Visual C++ Tutorial &amp; Basic Concepts</title><content type='html'>&lt;h2&gt; &lt;u&gt;Background&lt;/u&gt;&lt;/h2&gt; You will be writing programs, and then compiling and running them. To compile a program (think of compilation as turning C++ code into a different language that your PC can run), it must be a part of a Visual C++ "project". &lt;p&gt;Think of it this way. A program is a lot like a piece of paper with words on it, and a project is a lot like a big wooden desk. When you create a new Visual C++ Project, you are building a new desk to work on. This desk has a special area where it holds the papers that are most important to you, but there is also lots of space to hold other papers. &lt;/p&gt;&lt;p&gt; Every time you write a new program, you get out a blank piece of paper and write on it. You can also, of course, take an old program (a piece of paper you've already written on) and run it, or modify it and then run it. &lt;/p&gt;&lt;p&gt;When you want to compile and run your program, you have to tell the computer to remove any other papers from the special space on the desk, and put your program in the special space. Then you have to tell it to put your new program in the special space. Finally, you tell it to compile and run what's in the special space. &lt;/p&gt;&lt;p&gt;This document gives you an outline of how to do different common tasks, and has links to the following files: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;        &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/new_project.pdf"&gt;Creating a New Visual C++ 6.0 Project&lt;/a&gt;: Think        of this as building a new desk. You should only have to do this once for        the entire semester. (Under certain circumstances Visual C++ will mess        up your desk and you'll have to build a new one, if things don't seem to        be working, this may be the problem. BUT, it's fairly uncommon, probably        happens to 5-10% of students over the course of the &lt;i&gt;semester&lt;/i&gt;, so        don't worry about it too much.)&lt;/li&gt;&lt;li&gt; &lt;b&gt; NEW! &lt;/b&gt;&lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/opening_workspace.html"&gt;Opening a workspace you created        earlier&lt;/a&gt;:        If you built a desk previously, this lets you retrieve that desk rather than        building a whole new one each time.     &lt;/li&gt;&lt;li&gt;        &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/new_program.pdf"&gt;Creating a New Program in an Existing Visual        C++ Project&lt;/a&gt;: Think of this as getting a brand new sheet of blank paper        and putting it on the special space in your desk.&lt;/li&gt;&lt;li&gt;        &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/building.pdf"&gt;Compiling and Running your Visual C++ 6.0 Project&lt;/a&gt;:        This is the final step in using your setup. You are telling the computer        to compile and then run what's in the special space on your desk.&lt;/li&gt;&lt;li&gt;        &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/removing_from_project.pdf"&gt;Removing a program from your project&lt;/a&gt;:        Think of this as removing something from the special space on your desk        that you don't need to use for now. It doesn't mean that you're erasing        everything that's on that piece of paper, but you are moving it away from        the special space on your desk.&lt;/li&gt;&lt;li&gt;        &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/opening_existing_file.pdf"&gt;Opening an existing program in your        Visual C++ 6.0 Workspace&lt;/a&gt;: You use this when you started writing on        a piece of paper earlier, maybe even made it into a working program, but        at some point you took it off of the special space on your desk. This technique        will enable you to put that old piece of paper back on the special space        on your desk.&lt;/li&gt;&lt;/ol&gt;  &lt;h2&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;u&gt;Before you start to use Visual C++ for the first time&lt;/u&gt;&lt;/p&gt;&lt;/h2&gt;  &lt;h3&gt; Set up your Computer Science &amp;amp; Programming Folder:&lt;/h3&gt; Make a folder on your H drive called CSP&lt;br /&gt;Inside of that folder, make another folder called lab1&lt;br /&gt;(Each week, you'll make a new folder -- lab2, lab3, and so on)&lt;br /&gt;  &lt;h2&gt; &lt;u&gt;The first time you use Visual C++&lt;/u&gt;&lt;/h2&gt;  &lt;ul&gt;&lt;li&gt;        Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/new_project.pdf"&gt;Creating a New Visual        C++ 6.0 Project&lt;/a&gt; handout to make a new project.&lt;/li&gt;&lt;li&gt;        Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/new_program.pdf"&gt;Creating a New Program        in an Existing Visual C++ Project&lt;/a&gt; handout to write a new program.&lt;/li&gt;&lt;li&gt;        Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/building.pdf"&gt;Compiling and Running        your Visual C++ 6.0 Project&lt;/a&gt; handout to compile and run your program.&lt;/li&gt;&lt;/ul&gt;  &lt;h2&gt; &lt;u&gt;Using Visual C++ again to write a new program&lt;/u&gt;&lt;/h2&gt;  &lt;ul&gt;&lt;li&gt; &lt;b&gt;NEW&lt;/b&gt; &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/opening_workspace.html"&gt;Opening up your workspace again&lt;/a&gt;        (necessary only when you just start up Visual C++).   &lt;/li&gt;&lt;li&gt;        Remove your old program from the project as described in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/removing_from_project.pdf"&gt;Removing        a program from your project&lt;/a&gt; handout.&lt;/li&gt;&lt;li&gt;        Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/new_program.pdf"&gt;Creating a New Program        in an Existing Visual C++ Project&lt;/a&gt; handout to write a new program.&lt;/li&gt;&lt;li&gt;        Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/building.pdf"&gt;Compiling and Running        your Visual C++ 6.0 Project&lt;/a&gt; handout to compile and run your program.&lt;/li&gt;&lt;/ul&gt;  &lt;h2&gt; &lt;u&gt;Using Visual C++ to look at / run a program you've already written&lt;/u&gt;&lt;/h2&gt;  &lt;blockquote&gt;   &lt;li&gt; &lt;b&gt;NEW&lt;/b&gt; &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/opening_workspace.html"&gt;Opening up your workspace again&lt;/a&gt;        (necessary only when you start up Visual C++). &lt;/li&gt;&lt;li&gt;      Remove your old program from the project as described in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/removing_from_project.pdf"&gt;Removing      a program from your project&lt;/a&gt; handout.&lt;/li&gt;  &lt;li&gt;      Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/opening_existing_file.pdf"&gt;Opening      an existing program in your Visual C++ 6.0 Workspace&lt;/a&gt; handout to open      your program&lt;/li&gt;  &lt;li&gt;      Follow the directions in the &lt;a href="http://elvis.rowan.edu/%7Ekay/cpp/vc6_tutorial/building.pdf"&gt;Compiling and Running      your Visual C++ 6.0 Project&lt;/a&gt; handout to compile and run your program.&lt;/li&gt;      &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-5588199726168286258?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/5588199726168286258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=5588199726168286258' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5588199726168286258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/5588199726168286258'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/visual-c-tutorial-basic-concepts.html' title='Visual C++ Tutorial &amp; Basic Concepts'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-4327076410494523535</id><published>2008-12-11T23:07:00.000-08:00</published><updated>2008-12-22T20:58:09.431-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++ 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Creating a C++ Program in Microsoft Visual Studio 2005</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Courier; 	panose-1:2 7 4 9 2 2 5 2 4 4; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:SimSun; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:宋体; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:1 135135232 16 0 262144 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@SimSun"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:SimSun; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi; 	mso-fareast-language:ZH-CN;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"MS Mincho"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Microsoft Visual Studio 2005 is a sophisticated environment designed for developing complex&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Windows applications. A complete “Project” consists of a “source program” (which you write)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and all the linked header, library, and other resource files. We will be using very few of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;features of this environment to run the relatively simple programs in this course, but we will&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;need to link to external header files and libraries to use the National Instruments programs to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;control the PCI-6024E A/D card. Below is a step-by-step description of how to create a Project,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;add your C++ source program, and link to external header and library files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;1. Open MS Visual C/C++. On the computers in the “High-Tech Tools and Toys Lab” You&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;will find this program under the Start button by following the links: &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Programs&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Microsoft Visual Studio 2005 &gt;&gt; MS Visual Studio 2005&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;2. Under the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;File &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu choose &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;New &gt;&gt; Project &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and then, in the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Visual C++ &gt;&gt; Win 32&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Project Type, select &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Win-32 Console Application&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Give the project a name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;(suggestion “&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;” where “&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;xyz&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;” are your initials). Under “&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Location&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;,” use your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;memory stick if possible. Any files stored on the computer are likely to be erased or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;corrupted. Click &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Next&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;, check the box for &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Empty Application&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;, &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and press &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Finish&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;3. You will now have created a folder called &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;in your personal directory. This is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;your “Project Workspace.” If you look in this folder you will find three files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz.ncb, Lab7_xyz.sln, and Lab7_xyz.suo &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and a folder&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;. These files and folder contain information about your project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;4. To create a C++ program in your project you have to add a C++ &lt;i&gt;source file &lt;/i&gt;to the Project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;From the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Project &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Menu, select &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Add New Item &gt;&gt; Visual C++ &gt;&gt; C++ File&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;. Give&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;your source file the same name as your project (“Lab7_xyz”). The &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Project &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Location &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;will be your &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Project and your Workspace on your memory stick.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Click OK and you will be transferred to a text editor with an open file &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Lab7_xyz.cpp&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;5. Write your C++ source code for your program. After the customary few lines of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;comments and before your &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;int main(void) &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;or &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;void main(void) &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;routine, insert&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;#include &lt;iostream&gt; // input/output to console&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;#include &lt;nidaq.h&gt; //NI-DAQ routines for the PCI-6024E&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Note: You will need to either add the NI-DAQ header directory to your path by using the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Tools&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;&gt;&gt; Options &gt;&gt; Projects and Solutions &gt;&gt; VC++ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu (as described in 8 below) or use the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;entire path to &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaq.h&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;#include &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(164, 21, 21);"&gt;&lt;c:\program&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;6. To use the NI functions, you will also need to the library file &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaq32.lib &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;to your&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Project. Under the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Project &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu, choose &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Add Exiting Item &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and mouse to the files in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;C:\Program Files\National Instruments\NI-DAQ\lib. &lt;i&gt;You will need to specify the default&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;i&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;file type as &lt;/span&gt;&lt;/i&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;All Files &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;or else you will see only the .h files&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;. Highlight the &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaq32.lib&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;library (it may appear as just &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaq32 &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;if Windows suppresses file extensions) and press&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;OK.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;7. Under the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Build &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu, choose &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Rebuild All &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and hope for no compile or link errors. If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;OK, choose &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Debug &gt;&gt; Start Without Debugging &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;and watch the program run.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Debug, debug, debug.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;8. If you set a path to C:\Program Files\National Instruments\NI-DAQ\Include, you will not&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;need to put the entire path for &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaq.h &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;into your &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;#include &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;statement. To do this, go&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;to the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Tools &gt;&gt; Options &gt;&gt; Projects and Solutions &gt;&gt; VC++ Directories &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;choose “&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;Include Files” &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;in the pull-down box, and then click in the “Directories” area&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;until you get an open box. Click in the box until you get a gray button with three dots&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;(&lt;b&gt;…&lt;/b&gt;). Click on this and you will be able to click to the C:\Program Files\National&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;Instruments\NI-DAQ\Include directory. This procedure allows the linker to find the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;header files in the National Instruments directory and Visual C will remember this setting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;henceforth.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;9. Some other header files and library files that you might need for some NI-DAQ functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaqcns.h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaqerr.h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidaqex.h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;Olderror.h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidex32.lib&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;There is also a &lt;i&gt;dynamic link library &lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: Courier; color: black;"&gt;nidex32.dll &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;that may have to be in a directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;that is in the path MS Visual C++ searches for execution-time libraries. Don’t worry&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;about any of these files unless you are using a NI-DAQ program that indicates you need&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;10. When you finish your work for the day, copy your Workspace folder to your memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;stick if it is not already there. Make sure you have a copy of your source file at least. To&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;restart your program when you come back to the lab, reconnect your memory stick with&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;your files and Workspace folder. You can then restart MS Visual C++ and, from the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: black;"&gt;File&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt;menu, open the Workspace or the Project and you should be ready to go.&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-4327076410494523535?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/4327076410494523535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=4327076410494523535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4327076410494523535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4327076410494523535'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/creating-c-program-in-microsoft-visual.html' title='Creating a C++ Program in Microsoft Visual Studio 2005'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-2182202217091249750</id><published>2008-12-10T22:50:00.000-08:00</published><updated>2008-12-22T20:58:09.431-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CObject Class'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>CObject Class</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;title&gt;CRACK THE INTERVIEW&lt;/title&gt;&lt;link rel="themeData" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///D:%5CUSERPR%7E1%5Csshende%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Cambria; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073741899 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-alt:Verdana; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-fareast-font-family:Calibri; 	mso-bidi-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} h1 	{mso-style-priority:9; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-link:"Heading 1 Char"; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	mso-outline-level:1; 	font-size:24.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US; 	font-weight:bold;} h3 	{mso-style-noshow:yes; 	mso-style-priority:9; 	mso-style-qformat:yes; 	mso-style-link:"Heading 3 Char"; 	mso-style-next:Normal; 	margin-top:12.0pt; 	margin-right:0in; 	margin-bottom:3.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	page-break-after:avoid; 	mso-outline-level:3; 	font-size:13.0pt; 	font-family:"Cambria","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US; 	font-weight:bold;} h4 	{mso-style-noshow:yes; 	mso-style-priority:9; 	mso-style-qformat:yes; 	mso-style-link:"Heading 4 Char"; 	mso-style-next:Normal; 	margin-top:12.0pt; 	margin-right:0in; 	margin-bottom:3.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	page-break-after:avoid; 	mso-outline-level:4; 	font-size:14.0pt; 	font-family:"Calibri","sans-serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US; 	font-weight:bold;} a:link, span.MsoHyperlink 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:purple; 	mso-themecolor:followedhyperlink; 	text-decoration:underline; 	text-underline:single;} p 	{mso-style-priority:99; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} code 	{mso-style-noshow:yes; 	mso-style-priority:99; 	font-family:"Courier New"; 	mso-ascii-font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman"; 	mso-hansi-font-family:"Courier New"; 	mso-bidi-font-family:"Courier New";} pre 	{mso-style-priority:99; 	mso-style-link:"HTML Preformatted Char"; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; 	font-size:10.0pt; 	font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} tt 	{mso-style-noshow:yes; 	mso-style-priority:99; 	font-family:"Courier New"; 	mso-ascii-font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman"; 	mso-hansi-font-family:"Courier New"; 	mso-bidi-font-family:"Courier New";} span.Heading1Char 	{mso-style-name:"Heading 1 Char"; 	mso-style-priority:9; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"Heading 1"; 	mso-ansi-font-size:24.0pt; 	mso-bidi-font-size:24.0pt; 	font-family:"Times New Roman","serif"; 	mso-ascii-font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman"; 	mso-hansi-font-family:"Times New Roman"; 	mso-font-kerning:18.0pt; 	mso-fareast-language:EN-US; 	font-weight:bold;} span.Heading3Char 	{mso-style-name:"Heading 3 Char"; 	mso-style-noshow:yes; 	mso-style-priority:9; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"Heading 3"; 	mso-ansi-font-size:13.0pt; 	mso-bidi-font-size:13.0pt; 	font-family:"Cambria","serif"; 	mso-ascii-font-family:Cambria; 	mso-fareast-font-family:"Times New Roman"; 	mso-hansi-font-family:Cambria; 	mso-fareast-language:EN-US; 	font-weight:bold;} span.Heading4Char 	{mso-style-name:"Heading 4 Char"; 	mso-style-noshow:yes; 	mso-style-priority:9; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"Heading 4"; 	mso-ansi-font-size:14.0pt; 	mso-bidi-font-size:14.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US; 	font-weight:bold;} span.HTMLPreformattedChar 	{mso-style-name:"HTML Preformatted Char"; 	mso-style-priority:99; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"HTML Preformatted"; 	font-family:"Courier New"; 	mso-ascii-font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman"; 	mso-hansi-font-family:"Courier New"; 	mso-bidi-font-family:"Courier New"; 	mso-fareast-language:EN-US;} span.nonlinkterms 	{mso-style-name:nonlinkterms; 	mso-style-unhide:no;} p.label, li.label, div.label 	{mso-style-name:label; 	mso-style-unhide:no; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} p.dt, li.dt, div.dt 	{mso-style-name:dt; 	mso-style-unhide:no; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} p.indent, li.indent, div.indent 	{mso-style-name:indent; 	mso-style-unhide:no; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-language:EN-US;} span.parameter 	{mso-style-name:parameter; 	mso-style-unhide:no;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	font-size:10.0pt; 	mso-ansi-font-size:10.0pt; 	mso-bidi-font-size:10.0pt; 	mso-ascii-font-family:Calibri; 	mso-fareast-font-family:Calibri; 	mso-hansi-font-family:Calibri;} @page Section1 	{size:8.5in 11.0in; 	margin:49.5pt 1.0in 45.0pt 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:146477835; 	mso-list-template-ids:2064686596;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l1 	{mso-list-id:303120217; 	mso-list-template-ids:-119667976;} @list l1:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l2 	{mso-list-id:411002348; 	mso-list-template-ids:-1235297332;} @list l2:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l3 	{mso-list-id:1180006636; 	mso-list-template-ids:-925857592;} @list l3:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l4 	{mso-list-id:1249541078; 	mso-list-template-ids:460865300;} @list l4:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l5 	{mso-list-id:1569729922; 	mso-list-template-ids:497163072;} @list l5:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l6 	{mso-list-id:1710450372; 	mso-list-template-ids:2032314006;} @list l6:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l7 	{mso-list-id:1742216421; 	mso-list-template-ids:1470954160;} @list l7:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l8 	{mso-list-id:1755468314; 	mso-list-template-ids:-360569806;} @list l8:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l9 	{mso-list-id:1807039593; 	mso-list-template-ids:-1379133034;} @list l9:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l10 	{mso-list-id:2054303161; 	mso-list-template-ids:-1623981080;} @list l10:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l11 	{mso-list-id:2071004017; 	mso-list-template-ids:1405809428;} @list l11:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} @list l12 	{mso-list-id:2129352462; 	mso-list-template-ids:-61938024;} @list l12:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Calibri","sans-serif";} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 16pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The principal base class for the   Microsoft Foundation Class Library. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;class AFX_NOVTABLE CObject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: black;"&gt; Remarks &lt;a name="remarksToggle"&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.25in; text-indent: 0.5in; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;It serves as the root not only for library classes such as &lt;b&gt;CFile&lt;/b&gt; and &lt;b&gt;CObList&lt;/b&gt;, but also for the classes that you write. &lt;b&gt;CObject&lt;/b&gt; provides basic services, including &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Serialization support&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Run-time class information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Object diagnostic output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Compatibility with collection classes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Note that &lt;b&gt;CObject&lt;/b&gt; does not support multiple inheritance. Your derived classes can have only one &lt;b&gt;CObject&lt;/b&gt; base class, and that &lt;b&gt;CObject&lt;/b&gt; must be leftmost in the hierarchy. It is permissible, however, to have structures and non-&lt;b&gt;CObject&lt;/b&gt;-derived classes in right-hand multiple-inheritance branches.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;You will realize major benefits from &lt;b&gt;CObject&lt;/b&gt; derivation if you use some of the optional macros in your class implementation and declarations. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The first-level macros, &lt;a href="http://msdn.microsoft.com/en-us/library/ywz9k63y%28VS.80%29.aspx"&gt;DECLARE_DYNAMIC&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/es8sbsx5%28VS.80%29.aspx"&gt;IMPLEMENT_DYNAMIC&lt;/a&gt;, permit run-time access to the class name and its position in the hierarchy. This, in turn, allows meaningful diagnostic dumping. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The second-level macros, &lt;a href="http://msdn.microsoft.com/en-us/library/5593z07w%28VS.80%29.aspx"&gt;DECLARE_SERIAL&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/a94da1y0%28VS.80%29.aspx"&gt;IMPLEMENT_SERIAL&lt;/a&gt;, include all the functionality of the first-level macros, and they enable an object to be "serialized" to and from an "archive."&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;For information about deriving Microsoft Foundation classes and C++ classes in general and using &lt;b&gt;CObject&lt;/b&gt;, see &lt;a href="http://msdn.microsoft.com/en-us/library/1ybbhxe3%28VS.80%29.aspx"&gt;Using CObject&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/6bz744w8%28VS.80%29.aspx"&gt;Serialization&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Using CObject  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/7k3448yy%28VS.80%29.aspx"&gt;CObject&lt;/a&gt; is the root base class for most of the Microsoft Foundation Class Library (MFC). The &lt;b&gt;CObject&lt;/b&gt; class contains many useful features that you may want to incorporate into your own program objects, including serialization support, run-time class information, and object diagnostic output. If you derive your class from &lt;b&gt;CObject&lt;/b&gt;, your class can exploit these &lt;b&gt;CObject&lt;/b&gt; features.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CObject Members  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Construction&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/st9cdfkz%28VS.80%29.aspx"&gt;CObject&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Default constructor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/st9cdfkz%28VS.80%29.aspx"&gt;CObject&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Copy constructor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/sab9y331%28VS.80%29.aspx"&gt;operator delete&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Special &lt;b&gt;delete&lt;/b&gt; operator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/423z9ftt%28VS.80%29.aspx"&gt;operator new&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Special &lt;b&gt;new&lt;/b&gt; operator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Diagnostics&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/t2za4dew%28VS.80%29.aspx"&gt;AssertValid&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Validates this object's integrity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/tz0w4e3c%28VS.80%29.aspx"&gt;Dump&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Produces a diagnostic dump of this   object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Serialization&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/234se41c%28VS.80%29.aspx"&gt;IsSerializable&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Tests to see whether this object   can be serialized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ct517hs4%28VS.80%29.aspx"&gt;Serialize&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Loads or stores an object from/to   an archive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Miscellaneous&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/a7t4z25b%28VS.80%29.aspx"&gt;GetRuntimeClass&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Returns the &lt;b&gt;CRuntimeClass&lt;/b&gt;   structure corresponding to this object's class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/b7tsah76%28VS.80%29.aspx"&gt;IsKindOf&lt;/a&gt;   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Tests this object's relationship   to a given class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CObject::AssertValid  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Validates this object's integrity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;virtual void AssertValid( ) const;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Remarks &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;AssertValid&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; performs a validity check on this object by checking its internal state. In the Debug version of the library, &lt;b&gt;AssertValid&lt;/b&gt; may assert and thus terminate the program with a message that lists the line number and filename where the assertion failed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you write your own class, you should override the &lt;b&gt;AssertValid&lt;/b&gt; function to provide diagnostic services for yourself and other users of your class. The overridden &lt;b&gt;AssertValid&lt;/b&gt; usually calls the &lt;b&gt;AssertValid&lt;/b&gt; function of its base class before checking data members unique to the derived class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Because &lt;b&gt;AssertValid&lt;/b&gt; is a &lt;b&gt;const&lt;/b&gt; function, you are not permitted to change the object state during the test. Your own derived class &lt;b&gt;AssertValid&lt;/b&gt; functions should not throw exceptions but rather should assert whether they detect invalid object data. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The definition of "validity" depends on the object's class. As a rule, the function should perform a "shallow check." That is, if an object contains pointers to other objects, it should check to see whether the pointers are not null, but it should not perform validity testing on the objects referred to by the pointers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225100_i" spid="_x0000_i1025" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225100_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;a name="codeExampleToggle"&gt;&lt;/a&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl10other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1026" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1026" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// example for CObject::AssertValid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;void CAge::AssertValid() const&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;CObject::AssertValid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;ASSERT( m_years   &gt; 0 ); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;ASSERT( m_years   &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;CObject::CObject  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;These functions are the standard &lt;b&gt;CObject&lt;/b&gt; constructors.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;CObject( );&lt;/pre&gt;&lt;pre&gt;CObject( const CObject&amp;amp; objectSrc );&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h4&gt;Parameters&lt;/h4&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="nonlinkterms"&gt;&lt;i&gt;objectSrc&lt;/i&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;A reference to another &lt;b&gt;CObject&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225209_i" spid="_x0000_i1027" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225209_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;/p&gt;  &lt;p&gt;The default version is automatically called by the constructor of your derived class. &lt;/p&gt;  &lt;p&gt;If your class is serializable (it incorporates the &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macro), then you must have a default constructor (a constructor with no arguments) in your class declaration. If you do not need a default constructor, declare a private or protected "empty" constructor. For more information, see &lt;a href="http://msdn.microsoft.com/en-us/library/1ybbhxe3%28VS.80%29.aspx"&gt;Using CObject&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;The standard C++ default class copy constructor does a member-by-member copy. The presence of the private &lt;b&gt;CObject&lt;/b&gt; copy constructor guarantees a compiler error message if the copy constructor of your class is needed but not available. You must therefore provide a copy constructor if your class requires this capability.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225210_i" spid="_x0000_i1028" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225210_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;/p&gt;  &lt;p&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;CAge&lt;/span&gt;&lt;/tt&gt; class used in the &lt;b&gt;CObject&lt;/b&gt; examples.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl11other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1029" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1029" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;// Create a CAge object using the default constructor.&lt;/pre&gt;&lt;pre&gt;CAge age1;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;// Create a CAge object using the copy constructor.&lt;/pre&gt;&lt;pre&gt;CAge age2( age1 );&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;CObject::Dump  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Dumps the contents of your object to a &lt;a href="http://msdn.microsoft.com/en-us/library/y2h42a93%28VS.80%29.aspx"&gt;CDumpContext&lt;/a&gt; object.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;virtual void Dump(&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;CDumpContext&amp;amp; dc &lt;/pre&gt;&lt;pre&gt;) const;&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h4&gt;Parameters&lt;/h4&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="parameter"&gt;dc&lt;/span&gt;&lt;span class="nonlinkterms"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;The diagnostic dump context for dumping, usually &lt;b&gt;afxDump&lt;/b&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225281_i" spid="_x0000_i1030" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225281_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;/p&gt;  &lt;p&gt;When you write your own class, you should override the &lt;b&gt;Dump&lt;/b&gt; function to provide diagnostic services for yourself and other users of your class. The overridden &lt;b&gt;Dump&lt;/b&gt; usually calls the &lt;b&gt;Dump&lt;/b&gt; function of its base class before printing data members unique to the derived class. &lt;b&gt;CObject::Dump&lt;/b&gt; prints the class name if your class uses the &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; or &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macro.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1031" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/tz0w4e3c.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1031" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Your &lt;b&gt;Dump&lt;/b&gt; function should not print a newline character at the end   of its output. &lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;Dump&lt;/b&gt; calls make sense only in the Debug version of the Microsoft Foundation Class Library. You should bracket calls, function declarations, and function implementations with &lt;b&gt;#ifdef _DEBUG&lt;/b&gt;/&lt;b&gt;#endif&lt;/b&gt; statements for conditional compilation. &lt;/p&gt;  &lt;p&gt;Since &lt;b&gt;Dump&lt;/b&gt; is a &lt;b&gt;const&lt;/b&gt; function, you are not permitted to change the object state during the dump. &lt;/p&gt;  &lt;p&gt;The &lt;a href="http://msdn.microsoft.com/en-us/library/9eysket3%28VS.80%29.aspx"&gt;CDumpContext insertion (&lt;&lt;) operator&lt;/a&gt; calls &lt;b&gt;Dump&lt;/b&gt; when a &lt;b&gt;CObject&lt;/b&gt; pointer is inserted. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Dump&lt;/b&gt; permits only "acyclic" dumping of objects. You can dump a list of objects, for example, but if one of the objects is the list itself, you will eventually overflow the stack.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225282_i" spid="_x0000_i1032" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225282_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;/p&gt;  &lt;p&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;CAge&lt;/span&gt;&lt;/tt&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl12other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1033" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1033" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;// example for CObject::Dump&lt;/pre&gt;&lt;pre&gt;void CAge::Dump( CDumpContext &amp;amp;dc ) const&lt;/pre&gt;&lt;pre&gt; {&lt;/pre&gt;&lt;pre&gt; CObject::Dump( dc );&lt;/pre&gt;&lt;pre&gt; dc &lt;&lt; "Age = " &lt;&lt;&gt;&lt;pre&gt; }&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CObject::GetRuntimeClass  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Returns the &lt;b&gt;CRuntimeClass&lt;/b&gt; structure corresponding to this object's class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;virtual CRuntimeClass* GetRuntimeClass( ) const;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225461_i" spid="_x0000_i1034" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225461_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Return Value &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;a name="returnValueToggle"&gt;&lt;/a&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A pointer to the &lt;a href="http://msdn.microsoft.com/en-us/library/cyfc5et8%28VS.80%29.aspx"&gt;CRuntimeClass&lt;/a&gt; structure corresponding to this object's class; never &lt;b&gt;NULL&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225462_i" spid="_x0000_i1035" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225462_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;There is one &lt;b&gt;CRuntimeClass&lt;/b&gt; structure for each &lt;b&gt;CObject&lt;/b&gt;-derived class. The structure members are as follows: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;LPCSTR m_lpszClassName&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   A null-terminated string containing      the ASCII class name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;int m_nObjectSize&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   The      size of the object, in bytes. If the object has data members that point to      allocated memory, the size of that memory is not included. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;UINT m_wSchema&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   The      schema number ( – 1 for nonserializable classes). See the &lt;a href="http://msdn.microsoft.com/en-us/library/a94da1y0%28VS.80%29.aspx"&gt;IMPLEMENT_SERIAL&lt;/a&gt;      macro for a description of schema number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CObject* ( PASCAL* m_pfnCreateObject )( )&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   A function pointer to the default      constructor that creates an object of your class (valid only if the class      supports dynamic creation; otherwise, returns &lt;b&gt;NULL&lt;/b&gt;). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CRuntimeClass* ( PASCAL* m_pfn_GetBaseClass )( )&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   If your application is dynamically      linked to the AFXDLL version of MFC, a pointer to a function that returns      the &lt;b&gt;CRuntimeClass&lt;/b&gt; structure of the base class. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CRuntimeClass* m_pBaseClass&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;   If your application is statically      linked to MFC, a pointer to the &lt;b&gt;CRuntimeClass&lt;/b&gt; structure of the base      class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;This function requires use of the &lt;a href="http://msdn.microsoft.com/en-us/library/es8sbsx5%28VS.80%29.aspx"&gt;IMPLEMENT_DYNAMIC&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/5fsfk9dy%28VS.80%29.aspx"&gt;IMPLEMENT_DYNCREATE&lt;/a&gt;, or &lt;a href="http://msdn.microsoft.com/en-us/library/a94da1y0%28VS.80%29.aspx"&gt;IMPLEMENT_SERIAL&lt;/a&gt; macro in the class implementation. You will get incorrect results otherwise.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225463_i" spid="_x0000_i1036" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225463_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl21other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1037" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1037" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// example for CObject::GetRuntimeClass&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge a(21);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CRuntimeClass* prt = a.GetRuntimeClass();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;ASSERT( strcmp( prt-&gt;m_lpszClassName, "CAge"   )&lt;span style=""&gt;  &lt;/span&gt;== 0 );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;CObject::IsKindOf  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Tests this object's relationship to a given class.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;BOOL IsKindOf(&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;const CRuntimeClass* pClass &lt;/pre&gt;&lt;pre&gt;) const;&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h4&gt;Parameters&lt;/h4&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="parameter"&gt;pClass&lt;/span&gt;&lt;span class="nonlinkterms"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;A pointer to a &lt;a href="http://msdn.microsoft.com/en-us/library/cyfc5et8%28VS.80%29.aspx"&gt;CRuntimeClass&lt;/a&gt; structure associated with your &lt;b&gt;CObject&lt;/b&gt;-derived class.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225518_i" spid="_x0000_i1038" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225518_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Return Value &lt;/p&gt;  &lt;p&gt;Nonzero if the object corresponds to the class; otherwise 0.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225519_i" spid="_x0000_i1039" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225519_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;/p&gt;  &lt;p&gt;This function tests &lt;span class="parameter"&gt;pClass&lt;/span&gt; to see if (1) it is an object of the specified class or (2) it is an object of a class derived from the specified class. This function works only for classes declared with the &lt;a href="http://msdn.microsoft.com/en-us/library/ywz9k63y%28VS.80%29.aspx"&gt;DECLARE_DYNAMIC&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/56302tyt%28VS.80%29.aspx"&gt;DECLARE_DYNCREATE&lt;/a&gt;, or &lt;a href="http://msdn.microsoft.com/en-us/library/5593z07w%28VS.80%29.aspx"&gt;DECLARE_SERIAL&lt;/a&gt; macro.&lt;/p&gt;  &lt;p&gt;Do not use this function extensively because it defeats the C++ polymorphism feature. Use virtual functions instead.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225520_i" spid="_x0000_i1040" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225520_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;/p&gt;  &lt;p&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;CAge&lt;/span&gt;&lt;/tt&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl18other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1041" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1041" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;// example for CObject::IsKindOf&lt;/pre&gt;&lt;pre&gt;CAge a(21);&lt;span style=""&gt;  &lt;/span&gt;// Must use IMPLEMENT_DYNAMIC, IMPLEMENT _DYNCREATE, or&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;             &lt;/span&gt;// IMPLEMENT_SERIAL&lt;/pre&gt;&lt;pre&gt;ASSERT( a.IsKindOf( RUNTIME_CLASS( CAge ) ) );&lt;/pre&gt;&lt;pre&gt;ASSERT( a.IsKindOf( RUNTIME_CLASS( CObject ) ) );&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CObject::IsSerializable  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Tests whether this object is eligible for serialization.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;BOOL IsSerializable( ) const;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225613_i" spid="_x0000_i1042" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225613_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Return Value &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Nonzero if this object can be serialized; otherwise 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225614_i" spid="_x0000_i1043" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225614_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;For a class to be serializable, its declaration must contain the &lt;a href="http://msdn.microsoft.com/en-us/library/5593z07w%28VS.80%29.aspx"&gt;DECLARE_SERIAL&lt;/a&gt; macro, and the implementation must contain the &lt;a href="http://msdn.microsoft.com/en-us/library/a94da1y0%28VS.80%29.aspx"&gt;IMPLEMENT_SERIAL&lt;/a&gt; macro.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1044" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/234se41c.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1044" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Do not override this function. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225615_i" spid="_x0000_i1045" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225615_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl15other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1046" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1046" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// example for CObject::IsSerializable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge a(21);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;ASSERT( a.IsSerializable() );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;CObject::Serialize  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Reads or writes this object from or to an archive.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;virtual void Serialize(&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;CArchive&amp;amp; ar &lt;/pre&gt;&lt;pre&gt;);&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h4&gt;Parameters&lt;/h4&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="parameter"&gt;ar&lt;/span&gt;&lt;span class="nonlinkterms"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;A &lt;b&gt;CArchive&lt;/b&gt; object to serialize to or from.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225666_i" spid="_x0000_i1047" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225666_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;/p&gt;  &lt;p&gt;You must override &lt;b&gt;Serialize&lt;/b&gt; for each class that you intend to serialize. The overridden &lt;b&gt;Serialize&lt;/b&gt; must first call the &lt;b&gt;Serialize&lt;/b&gt; function of its base class. &lt;/p&gt;  &lt;p&gt;You must also use the &lt;a href="http://msdn.microsoft.com/en-us/library/5593z07w%28VS.80%29.aspx"&gt;DECLARE_SERIAL&lt;/a&gt; macro in your class declaration, and you must use the &lt;a href="http://msdn.microsoft.com/en-us/library/a94da1y0%28VS.80%29.aspx"&gt;IMPLEMENT_SERIAL&lt;/a&gt; macro in the implementation.&lt;/p&gt;  &lt;p&gt;Use &lt;a href="http://msdn.microsoft.com/en-us/library/sdfebd6f%28VS.80%29.aspx"&gt;CArchive::IsLoading&lt;/a&gt; or &lt;a href="http://msdn.microsoft.com/en-us/library/930d7w08%28VS.80%29.aspx"&gt;CArchive::IsStoring&lt;/a&gt; to determine whether the archive is loading or storing. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Serialize&lt;/b&gt; is called by &lt;a href="http://msdn.microsoft.com/en-us/library/bkcy8aad%28VS.80%29.aspx"&gt;CArchive::ReadObject&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/h76xxah1%28VS.80%29.aspx"&gt;CArchive::WriteObject&lt;/a&gt;. These functions are associated with the &lt;b&gt;CArchive&lt;/b&gt; insertion operator (&lt;b&gt;&lt;&lt;&lt;/b&gt;) and extraction operator (&lt;b&gt;&gt;&gt;&lt;/b&gt;). &lt;/p&gt;  &lt;p&gt;For serialization examples, see the article &lt;a href="http://msdn.microsoft.com/en-us/library/zdet560w%28VS.80%29.aspx"&gt;Serialization: Serializing an Object&lt;/a&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe225667_i" spid="_x0000_i1048" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe225667_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Example &lt;/p&gt;  &lt;p&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/94szaks3%28VS.80%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;CAge&lt;/span&gt;&lt;/tt&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl23other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1049" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1049" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;// example for CObject::Serialize&lt;/pre&gt;&lt;pre&gt;void CAge::Serialize( CArchive&amp;amp; ar )&lt;/pre&gt;&lt;pre&gt; {&lt;/pre&gt;&lt;pre&gt; CObject::Serialize( ar );&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;     &lt;/span&gt;if( ar.IsStoring() )&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;     &lt;/span&gt;ar &lt;&lt;&gt;&lt;pre&gt;&lt;span style=""&gt;     &lt;/span&gt;else&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;     &lt;/span&gt;ar &gt;&gt; m_years;&lt;/pre&gt;&lt;pre&gt; }&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 16pt; line-height: 115%;"&gt;DECLARE_DYNAMIC  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Adds the ability to access run-time information about an object's class when deriving a class from &lt;b&gt;CObject&lt;/b&gt;.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;DECLARE_DYNAMIC(class_name )&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h4&gt;Parameters&lt;/h4&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="nonlinkterms"&gt;&lt;i&gt;class_name&lt;/i&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;The actual name of the class.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="ctl00_rs1_mainContentContainer_cpe217493_i" spid="_x0000_i1050" type="#_x0000_t75" alt="" style="'width:12pt;height:12pt'"&gt;  &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.gif" href="http://i.msdn.microsoft.com/Platform/Controls/CollapsibleArea/resources/minus.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image001.gif" shapes="ctl00_rs1_mainContentContainer_cpe217493_i" border="0" width="16" height="16" /&gt;&lt;!--[endif]--&gt; Remarks &lt;/p&gt;  &lt;p&gt;Add the &lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt; macro to the header (.h) module for the class, then include that module in all .cpp modules that need access to objects of this class.&lt;/p&gt;  &lt;p&gt;If you use the &lt;b&gt;DECLARE&lt;/b&gt;_&lt;b&gt;DYNAMIC&lt;/b&gt; and &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; macros as described, you can then use the &lt;b&gt;RUNTIME_CLASS&lt;/b&gt; macro and the &lt;b&gt;CObject::IsKindOf&lt;/b&gt; function to determine the class of your objects at run time.&lt;/p&gt;  &lt;p&gt;If &lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt; is included in the class declaration, then &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; must be included in the class implementation.&lt;/p&gt;  &lt;h1&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;IMPLEMENT_DYNAMIC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;IMPLEMENT_DYNAMIC(&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;i&gt;class_name&lt;/i&gt;&lt;b&gt;,&lt;/b&gt; &lt;i&gt;base_class_name&lt;/i&gt; &lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Parameters&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The actual name of the class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;base_class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The name of the base class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Generates the C++ code necessary for a dynamic &lt;b&gt;CObject&lt;/b&gt;-derived class with run-time access to the class name and position within the hierarchy. Use the &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; macro in a .CPP module, then link the resulting object code only once. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;For more information, see in &lt;i&gt;Visual C++ Programmer’s Guide&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;// CAge.h&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;class CAge : public CObject&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;     int num;&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;public:&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;     DECLARE_DYNAMIC(CAge)&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;//==============&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;// CAge.cpp&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#include "stdafx.h"&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#include "CAge.h"&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;IMPLEMENT_DYNAMIC(CAge, CObject)&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;h1&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;DECLARE_SERIAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;DECLARE_SERIAL(&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;i&gt;class_name&lt;/i&gt; &lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Parameters&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The actual name of the class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;DECLARE_SERIAL&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; generates the C++ header code necessary for a &lt;b&gt;CObject&lt;/b&gt;-derived class that can be serialized. Serialization is the process of writing or reading the contents of an object to and from a file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Use the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; macro in a .H module, then include that module in all .CPP modules that need access to objects of this class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;If &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; is included in the class declaration, then &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; must be included in the class implementation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; macro includes all the functionality of &lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt; and &lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;You can use the &lt;b&gt;AFX_API&lt;/b&gt; macro to automatically export the &lt;b&gt;CArchive&lt;/b&gt; extraction operator for classes that use the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; and &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macros. Bracket the class declarations (located in the .H file) with the following code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;#undef AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#define AFX_API AFX_EXT_CLASS&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;your&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#undef AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#define AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;For more information on the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; macro, see in &lt;i&gt;Visual C++ Programmer’s Guide&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;class CMyClass: public CObject&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;public:&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=""&gt;   &lt;/span&gt;CMyClass();&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=""&gt;   &lt;/span&gt;void Serialize( CArchive&amp;amp; archive );&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=""&gt;   &lt;/span&gt;DECLARE_SERIAL(CMyClass)&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;h1&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;IMPLEMENT_SERIAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;IMPLEMENT_SERIAL(&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;i&gt;class_name&lt;/i&gt;&lt;b&gt;,&lt;/b&gt; &lt;i&gt;base_class_name&lt;/i&gt;&lt;b&gt;,&lt;/b&gt; &lt;i&gt;wSchema&lt;/i&gt; &lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Parameters&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The actual name of the class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;base_class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The name of the base class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;wSchema&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;A &lt;b&gt;UINT&lt;/b&gt; “version number” that will be encoded in the archive to enable a deserializing program to identify and handle data created by earlier program versions. The class schema number must not be –1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Generates the C++ code necessary for a dynamic &lt;b&gt;CObject&lt;/b&gt;-derived class with run-time access to the class name and position within the hierarchy. Use the &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macro in a .CPP module; then link the resulting object code only once.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;You can use the &lt;b&gt;AFX_API&lt;/b&gt; macro to automatically export the &lt;b&gt;CArchive&lt;/b&gt; extraction operator for classes that use the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; and &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macros. Bracket the class declarations (located in the .H file) with the following code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;#undef AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#define AFX_API AFX_EXT_CLASS&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;your&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#undef AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#define AFX_API&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;For more information, see the in &lt;i&gt;Visual C++ Programmer’s Guide&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;// MyClass.cpp&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#include "stdafx.h"&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;#include "MyClass.h"&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;IMPLEMENT_SERIAL( CMyClass, CObject, VERSIONABLE_SCHEMA | 2 )&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;h1&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;CObject::IsKindOf &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;BOOL&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;b&gt;IsKindOf(&lt;/b&gt; &lt;b&gt;const&lt;/b&gt; &lt;b&gt;CRuntimeClass*&lt;/b&gt; &lt;i&gt;pClass&lt;/i&gt; &lt;b&gt;)&lt;/b&gt; &lt;b&gt;const;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Return Value&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Nonzero if the object corresponds to the class; otherwise 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Parameters&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;pClass&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;A pointer to a &lt;a href="http://msdn.microsoft.com/en-us/library/aa313517%28VS.60%29.aspx"&gt;CRuntimeClass&lt;/a&gt; structure associated with your &lt;b&gt;CObject&lt;/b&gt;-derived class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Tests &lt;i&gt;pClass&lt;/i&gt; to see if (1) it is an object of the specified class or (2) it is an object of a class derived from the specified class. This function works only for classes declared with the &lt;a href="http://msdn.microsoft.com/en-us/library/aa251403%28VS.60%29.aspx"&gt;DECLARE_DYNAMIC&lt;/a&gt; or &lt;a href="http://msdn.microsoft.com/en-us/library/aa251421%28VS.60%29.aspx"&gt;DECLARE_SERIAL&lt;/a&gt; macro. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Do not use this function extensively because it defeats the C++ polymorphism feature. Use virtual functions instead.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/aa271309%28VS.60%29.aspx"&gt;CObList::CObList&lt;/a&gt; for a listing of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-size: 10pt;"&gt;CAge&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;// example for CObject::IsKindOf&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;CAge a(21); // Must use IMPLEMENT_DYNAMIC or IMPLEMENT_SERIAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;ASSERT( a.IsKindOf( RUNTIME_CLASS( CAge ) ) );&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;ASSERT( a.IsKindOf( RUNTIME_CLASS( CObject ) ) );&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;CObject::GetRuntimeClass &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;virtual&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;b&gt;CRuntimeClass*&lt;/b&gt; &lt;b&gt;GetRuntimeClass(&lt;/b&gt; &lt;b&gt;)&lt;/b&gt; &lt;b&gt;const;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Return Value&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;A pointer to the &lt;a href="http://msdn.microsoft.com/en-us/library/aa313517%28VS.60%29.aspx"&gt;&lt;span style=""&gt;CRuntimeClass&lt;/span&gt;&lt;/a&gt; structure corresponding to this object’s class; never &lt;b&gt;NULL&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;There is one &lt;b&gt;CRuntimeClass&lt;/b&gt; structure for each &lt;b&gt;CObject&lt;/b&gt;-derived class. The structure members are as follows: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="margin-bottom: 12pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;LPCSTR m_lpszClassName&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   A null-terminated string containing      the ASCII class name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-bottom: 12pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;int m_nObjectSize&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   The      size of the object, in bytes. If the object has data members that point to      allocated memory, the size of that memory is not included. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-bottom: 12pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;UINT m_wSchema&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   The      schema number ( – 1 for nonserializable classes). See the &lt;a href="http://msdn.microsoft.com/en-us/library/aa251738%28VS.60%29.aspx"&gt;&lt;span style=""&gt;IMPLEMENT_SERIAL&lt;/span&gt;&lt;/a&gt; macro for a description      of schema number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-bottom: 12pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;CObject* ( PASCAL* m_pfnCreateObject )( )&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   A function pointer to the default      constructor that creates an object of your class (valid only if the class      supports dynamic creation; otherwise, returns &lt;b&gt;NULL&lt;/b&gt;). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin-bottom: 12pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;CRuntimeClass* ( PASCAL* m_pfn_GetBaseClass )( )&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   If your application is dynamically      linked to the AFXDLL version of MFC, a pointer to a function that returns      the &lt;b&gt;CRuntimeClass&lt;/b&gt; structure of the base class. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;CRuntimeClass* m_pBaseClass&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   If your application is statically      linked to MFC, a pointer to the &lt;b&gt;CRuntimeClass&lt;/b&gt; structure of the base      class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Feature Only in Professional and Enterprise Editions&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;   Static linking to MFC is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;This function requires use of the &lt;a href="http://msdn.microsoft.com/en-us/library/aa251535%28VS.60%29.aspx"&gt;&lt;span style=""&gt;IMPLEMENT_DYNAMIC&lt;/span&gt;&lt;/a&gt; or &lt;a href="http://msdn.microsoft.com/en-us/library/aa251738%28VS.60%29.aspx"&gt;&lt;span style=""&gt;IMPLEMENT_SERIAL&lt;/span&gt;&lt;/a&gt; macro in the class implementation. You will get incorrect results otherwise.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;See &lt;a href="http://msdn.microsoft.com/en-us/library/aa271309%28VS.60%29.aspx"&gt;&lt;span style=""&gt;CObList::CObList&lt;/span&gt;&lt;/a&gt; for a listing of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; class used in all &lt;b&gt;CObject&lt;/b&gt; examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// example for CObject::GetRuntimeClass&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CAge a(21);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CRuntimeClass* prt = a.GetRuntimeClass();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;ASSERT( strcmp( prt-&gt;m_lpszClassName, "CAge" )  == 0 );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;h1&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;RUNTIME_CLASS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;RUNTIME_CLASS(&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; &lt;i&gt;class_name&lt;/i&gt; &lt;b&gt;)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Parameters&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="dt"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;class_name&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="indent"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;The actual name of the class (not enclosed in quotation marks).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Remarks&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Use this macro to get the run-time class structure from the name of a C++ class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;RUNTIME_CLASS&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; returns a pointer to a &lt;a href="http://msdn.microsoft.com/en-us/library/aa313517%28VS.60%29.aspx"&gt;CRuntimeClass&lt;/a&gt; structure for the class specified by &lt;i&gt;class_name&lt;/i&gt;. Only &lt;b&gt;CObject&lt;/b&gt;-derived classes declared with &lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt;, &lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt;, or &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; will return pointers to a &lt;b&gt;CRuntimeClass&lt;/b&gt; structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;For more information, see in &lt;i&gt;Visual C++ Programmer’s Guide&lt;/i&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;// example for RUNTIME_CLASS&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;CRuntimeClass* prt = RUNTIME_CLASS( CAge );&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;ASSERT( lstrcmp( prt-&gt;m_lpszClassName, "CAge" )  == 0 );&lt;o:p&gt;&lt;/o:p&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What do you want to do?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/1s9dfbhd%28VS.80%29.aspx"&gt;Derive      a class from CObject&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/47ecfxkh%28VS.80%29.aspx"&gt;Add      support for run-time class information, dynamic creation, and      serialization to my derived class&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/t91eb9y9%28VS.80%29.aspx"&gt;Access      run-time class information&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/4a790bwx%28VS.80%29.aspx"&gt;Create      objects dynamically&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/sc15kz85%28VS.80%29.aspx"&gt;Dump      the object's data for diagnostic purposes&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Validate the object's internal state (see &lt;a href="http://msdn.microsoft.com/en-us/library/38z04tfa%28VS.80%29.aspx"&gt;MFC      ASSERT_VALID and CObject::AssertValid&lt;/a&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/6bz744w8%28VS.80%29.aspx"&gt;Have      the class serialize itself to persistent storage&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 16pt; line-height: 115%;"&gt;Deriving a Class from CObject  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;This article describes the minimum steps necessary to derive a class from &lt;a href="http://msdn.microsoft.com/en-us/library/7k3448yy%28VS.80%29.aspx"&gt;CObject&lt;/a&gt;. Other &lt;b&gt;CObject&lt;/b&gt; class articles describe the steps needed to take advantage of specific &lt;b&gt;CObject&lt;/b&gt; features, such as serialization and diagnostic debugging support.&lt;/p&gt;  &lt;p&gt;In the discussions of &lt;b&gt;CObject&lt;/b&gt;, the terms "interface file" and "implementation file" are used frequently. The interface file (often called the header file, or .H file) contains the class declaration and any other information needed to use the class. The implementation file (or .CPP file) contains the class definition as well as the code that implements the class member functions. For example, for a class named &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;CPerson&lt;/span&gt;&lt;/tt&gt;, you would typically create an interface file named PERSON.H and an implementation file named PERSON.CPP. However, for some small classes that will not be shared among applications, it is sometimes easier to combine the interface and implementation into a single .CPP file.&lt;/p&gt;  &lt;p&gt;You can choose from four levels of functionality when deriving a class from &lt;b&gt;CObject&lt;/b&gt;: &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Basic functionality: No support for run-time class information or serialization but includes diagnostic memory management.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Basic functionality plus support for run-time class information.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Basic functionality plus support for run-time class information and dynamic creation.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Basic functionality plus support for run-time class information, dynamic creation, and serialization.&lt;/p&gt;  &lt;p&gt;Classes designed for reuse (those that will later serve as base classes) should at least include run-time class support and serialization support, if any future serialization need is anticipated.&lt;/p&gt;  &lt;p&gt;You choose the level of functionality by using specific declaration and implementation macros in the declaration and implementation of the classes you derive from &lt;b&gt;CObject&lt;/b&gt;. &lt;/p&gt;  &lt;p&gt;The following table shows the relationship among the macros used to support serialization and run-time information.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Macros Used for Serialization and Run-Time Information&lt;/b&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;Macro used &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;CObject::IsKindOf   &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;CRuntimeClass::   CreateObject &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;CArchive::operator&gt;&gt;   CArchive::operator&lt;&lt; &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Basic &lt;b&gt;CObject&lt;/b&gt; functionality&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;&lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt; &lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;&lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt; &lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;No&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;&lt;b&gt;DECLARE_SERIAL&lt;/b&gt; &lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;Yes&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h3&gt;To use basic CObject functionality&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the normal C++ syntax to derive your class from &lt;b&gt;CObject&lt;/b&gt; (or from a class derived from &lt;b&gt;CObject&lt;/b&gt;). &lt;/p&gt;  &lt;p style="margin-left: 0.5in;"&gt;The following example shows the simplest case, the derivation of a class from &lt;b&gt;CObject&lt;/b&gt;: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl02other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1051" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1051" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;class CPerson : public CObject &lt;/pre&gt;&lt;pre&gt;{&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;// add CPerson-specific members and functions... &lt;/pre&gt;&lt;pre&gt;}&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Normally, however, you may want to override some of &lt;b&gt;CObject&lt;/b&gt;'s member functions to handle the specifics of your new class. For example, you may usually want to override the &lt;b&gt;Dump&lt;/b&gt; function of &lt;b&gt;CObject&lt;/b&gt; to provide debugging output for the contents of your class. For details on how to override &lt;b&gt;Dump&lt;/b&gt;, see the article &lt;a href="http://msdn.microsoft.com/en-us/library/sc15kz85%28VS.80%29.aspx"&gt;Diagnostics: Dumping Object Contents&lt;/a&gt;. You may also want to override the &lt;b&gt;AssertValid&lt;/b&gt; function of &lt;b&gt;CObject&lt;/b&gt; to provide customized testing to validate the consistency of the data members of class objects. For a description of how to override &lt;b&gt;AssertValid&lt;/b&gt;, see &lt;a href="http://msdn.microsoft.com/en-us/library/38z04tfa%28VS.80%29.aspx"&gt;MFC ASSERT_VALID and CObject::AssertValid&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;The article &lt;a href="http://msdn.microsoft.com/en-us/library/47ecfxkh%28VS.80%29.aspx"&gt;Specifying Levels of Functionality&lt;/a&gt; describes how to specify other levels of functionality, including run-time class information, dynamic object creation, and serialization. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;Specifying Levels of Functionality  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;This article describes how to add the following levels of functionality to your &lt;a href="http://msdn.microsoft.com/en-us/library/7k3448yy%28VS.80%29.aspx"&gt;CObject&lt;/a&gt;-derived class: &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/47ecfxkh%28VS.80%29.aspx#_core_to_add_run.2d.time_class_information"&gt;Run-time class information&lt;/a&gt; &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/47ecfxkh%28VS.80%29.aspx#_core_to_add_dynamic_creation_support"&gt;Dynamic creation support&lt;/a&gt; &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/47ecfxkh%28VS.80%29.aspx#_core_to_add_serialization_support"&gt;Serialization support&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;For a general description of &lt;b&gt;CObject&lt;/b&gt; functionality, see the article &lt;a href="http://msdn.microsoft.com/en-us/library/1s9dfbhd%28VS.80%29.aspx"&gt;Deriving a Class from CObject&lt;/a&gt;. &lt;/p&gt;  &lt;h3&gt;To add run-time class information&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Derive your class from &lt;b&gt;CObject&lt;/b&gt;, as described in the &lt;a href="http://msdn.microsoft.com/en-us/library/1s9dfbhd%28VS.80%29.aspx"&gt;Deriving a Class from CObject&lt;/a&gt; article.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;DECLARE_DYNAMIC&lt;/b&gt; macro in your class declaration, as shown here: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl04other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1052" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1052" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;class CPerson : public CObject&lt;/pre&gt;&lt;pre&gt;{&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;DECLARE_DYNAMIC( CPerson )&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;// rest of class declaration follows...&lt;/pre&gt;&lt;pre&gt;};&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; macro in the implementation file (.CPP) of your class. This macro takes as arguments the name of the class and its base class, as follows: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl05other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1053" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1053" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;IMPLEMENT_DYNAMIC( CPerson, CObject )&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td colspan="3" style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1054" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/47ecfxkh.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1054" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td colspan="3" style="padding: 0.75pt;"&gt;   &lt;p&gt;Always put &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; in the implementation file (.CPP) for   your class. The &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt; macro should be evaluated only once   during a compilation and therefore should not be used in an interface file   (.H) that could potentially be included in more than one file. &lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;!--[if !supportMisalignedColumns]--&gt;  &lt;tr height="0"&gt;   &lt;td style="border: medium none ;" width="3"&gt;&lt;/td&gt;   &lt;td style="border: medium none ;" width="694"&gt;&lt;/td&gt;   &lt;td style="border: medium none ;" width="3"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;!--[endif]--&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h3&gt;To add dynamic creation support&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Derive your class from &lt;b&gt;CObject&lt;/b&gt;.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt; macro in the class declaration.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Define a constructor with no arguments (a default constructor).&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;IMPLEMENT_DYNCREATE&lt;/b&gt; macro in the class implementation file.&lt;/p&gt;  &lt;h3&gt;To add serialization support&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Derive your class from &lt;b&gt;CObject&lt;/b&gt;.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Override the &lt;b&gt;Serialize&lt;/b&gt; member function. &lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%; margin-left: 0.5in;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1055" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/47ecfxkh.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1055" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;If you call &lt;b&gt;Serialize&lt;/b&gt; directly, that is, you do not want to   serialize the object through a polymorphic pointer, omit steps 3 through 5.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; macro in the class declaration.&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Define a constructor with no arguments (a default constructor).&lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;5.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macro in the class implementation file.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1056" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/47ecfxkh.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1056" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;A "polymorphic pointer" points to an object of a class (call it   A) or to an object of any class derived from A (say, B). To serialize through   a polymorphic pointer, the framework must determine the run-time class of the   object it is serializing (B), since it might be an object of any class   derived from some base class (A).&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;Accessing Run-Time Class Information  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;This article explains how to access information about the class of an object at run time.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1057" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/t91eb9y9.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1057" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p&gt;MFC does not use the &lt;a href="http://msdn.microsoft.com/en-us/library/b2ay8610%28VS.80%29.aspx"&gt;Run-Time   Type Information&lt;/a&gt; (RTTI) support introduced in Visual C++ 4.0. &lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;If you have derived your class from &lt;a href="http://msdn.microsoft.com/en-us/library/7k3448yy%28VS.80%29.aspx"&gt;CObject&lt;/a&gt; and used the &lt;b&gt;DECLARE&lt;/b&gt;_&lt;b&gt;DYNAMIC&lt;/b&gt; and &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt;, the &lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt; and &lt;b&gt;IMPLEMENT_DYNCREATE&lt;/b&gt;, or the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; and &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macros explained in the article &lt;a href="http://msdn.microsoft.com/en-us/library/1s9dfbhd%28VS.80%29.aspx"&gt;Deriving a Class from CObject&lt;/a&gt;, the &lt;b&gt;CObject&lt;/b&gt; class has the ability to determine the exact class of an object at run time. &lt;/p&gt;  &lt;p&gt;This ability is most useful when extra type checking of function arguments is needed and when you must write special-purpose code based on the class of an object. However, this practice is not usually recommended because it duplicates the functionality of virtual functions.&lt;/p&gt;  &lt;p&gt;The &lt;b&gt;CObject&lt;/b&gt; member function &lt;b&gt;IsKindOf&lt;/b&gt; can be used to determine if a particular object belongs to a specified class or if it is derived from a specific class. The argument to &lt;b&gt;IsKindOf&lt;/b&gt; is a &lt;b&gt;CRuntimeClass&lt;/b&gt; object, which you can get using the &lt;b&gt;RUNTIME_CLASS&lt;/b&gt; macro with the name of the class.&lt;/p&gt;  &lt;h3&gt;To use the RUNTIME_CLASS macro&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use &lt;b&gt;RUNTIME_CLASS&lt;/b&gt; with the name of the class, as shown here for the class &lt;b&gt;CObject&lt;/b&gt;: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl04other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1058" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1058" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;CRuntimeClass* pClass = RUNTIME_CLASS( CObject );&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;You will rarely need to access the run-time class object directly. A more common use is to pass the run-time class object to the &lt;b&gt;IsKindOf&lt;/b&gt; function, as shown in the next procedure. The &lt;b&gt;IsKindOf&lt;/b&gt; function tests an object to see if it belongs to a particular class.&lt;/p&gt;  &lt;h3&gt;To use the IsKindOf function&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Make sure the class has run-time class support. That is, the class must have been derived directly or indirectly from &lt;b&gt;CObject&lt;/b&gt; and used the &lt;b&gt;DECLARE&lt;/b&gt;_&lt;b&gt;DYNAMIC&lt;/b&gt; and &lt;b&gt;IMPLEMENT_DYNAMIC&lt;/b&gt;, the &lt;b&gt;DECLARE_DYNCREATE&lt;/b&gt; and &lt;b&gt;IMPLEMENT_DYNCREATE&lt;/b&gt;, or the &lt;b&gt;DECLARE_SERIAL&lt;/b&gt; and &lt;b&gt;IMPLEMENT_SERIAL&lt;/b&gt; macros explained in the article &lt;a href="http://msdn.microsoft.com/en-us/library/1s9dfbhd%28VS.80%29.aspx"&gt;Deriving a Class from CObject&lt;/a&gt;. &lt;/p&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Call the &lt;b&gt;IsKindOf&lt;/b&gt; member function for objects of that class, using the &lt;b&gt;RUNTIME_CLASS&lt;/b&gt; macro to generate the &lt;b&gt;CRuntimeClass&lt;/b&gt; argument, as shown here: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl06other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1059" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1059" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;// in .H file&lt;/pre&gt;&lt;pre&gt;class CPerson : public CObject&lt;/pre&gt;&lt;pre&gt;{&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;DECLARE_DYNAMIC( CPerson )&lt;/pre&gt;&lt;pre&gt;public:&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;CPerson(){};&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;    &lt;/span&gt;// other declaration &lt;/pre&gt;&lt;pre&gt;};&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;// in .CPP file&lt;/pre&gt;&lt;pre&gt;IMPLEMENT_DYNAMIC( CPerson, CObject )&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;void SomeFunction(void)&lt;/pre&gt;&lt;pre&gt;{&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;CObject* pMyObject = new CPerson;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;if(pMyObject-&gt;IsKindOf( RUNTIME_CLASS( CPerson ) ) )&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;{&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;      &lt;/span&gt;//if IsKindOf is true, then cast is all right&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;      &lt;/span&gt;CPerson* pmyPerson = (CPerson*) pMyObject ;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;      &lt;/span&gt;...&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;      &lt;/span&gt;delete pmyPerson;&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;}&lt;/pre&gt;&lt;pre&gt;...&lt;/pre&gt;&lt;pre&gt;&lt;span style=""&gt;   &lt;/span&gt;delete [MyObject];&lt;/pre&gt;&lt;pre&gt;}&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td colspan="3" style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1060" type="#_x0000_t75" alt="Note" style="'width:7.5pt;height:7.5pt'"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image004.gif" href="http://i.msdn.microsoft.com/t91eb9y9.note%28en-US,VS.80%29.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.gif" alt="Note" shapes="_x0000_i1060" border="0" width="10" height="10" /&gt;&lt;!--[endif]--&gt;Note &lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td colspan="3" style="padding: 0.75pt;"&gt;   &lt;p&gt;IsKindOf returns &lt;b&gt;TRUE&lt;/b&gt; if the object is a member of the specified   class or of a class derived from the specified class. &lt;b&gt;IsKindOf&lt;/b&gt; does   not support multiple inheritance or virtual base classes, although you can   use multiple inheritance for your derived Microsoft Foundation classes if   necessary.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;!--[if !supportMisalignedColumns]--&gt;  &lt;tr height="0"&gt;   &lt;td style="border: medium none ;" width="3"&gt;&lt;/td&gt;   &lt;td style="border: medium none ;" width="694"&gt;&lt;/td&gt;   &lt;td style="border: medium none ;" width="3"&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;!--[endif]--&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;One use of run-time class information is in the dynamic creation of objects. This process is discussed in the article &lt;a href="http://msdn.microsoft.com/en-us/library/4a790bwx%28VS.80%29.aspx"&gt;Dynamic Object Creation&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;For more detailed information on serialization and run-time class information, see the articles &lt;a href="http://msdn.microsoft.com/en-us/library/ey6xh9bk%28VS.80%29.aspx"&gt;Files in MFC&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/6bz744w8%28VS.80%29.aspx"&gt;Serialization&lt;/a&gt;. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 18pt; line-height: 115%;"&gt;Dynamic Object Creation  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;This article explains how to create an object dynamically at run time. The procedure uses run-time class information, as discussed in the article &lt;a href="http://msdn.microsoft.com/en-us/library/t91eb9y9%28VS.80%29.aspx"&gt;Accessing Run-Time Class Information&lt;/a&gt;. &lt;/p&gt;  &lt;h3&gt;To dynamically create an object given its run-time class&lt;/h3&gt;  &lt;p style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use the following code to dynamically create an object by using the &lt;b&gt;CreateObject&lt;/b&gt; function of the &lt;b&gt;CRuntimeClass&lt;/b&gt;. Note that on failure, &lt;b&gt;CreateObject&lt;/b&gt; returns &lt;b&gt;NULL&lt;/b&gt; instead of raising an exception: &lt;/p&gt;  &lt;table class="MsoNormalTable" style="margin-left: 0.5in;" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl02other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1061" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1061" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;&lt;pre&gt;CRuntimeClass* pRuntimeClass = RUNTIME_CLASS( CMyClass );&lt;/pre&gt;&lt;pre&gt;CObject* pObject = pRuntimeClass-&gt;CreateObject();&lt;/pre&gt;&lt;pre&gt;ASSERT( pObject-&gt;IsKindOf( RUNTIME_CLASS( CMyClass ) ) );&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Object Dump Customization  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;This topic applies to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 100%;" border="0" cellpadding="0" width="100%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Visual Studio Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Visual Basic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;C#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;C++&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;J#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Express&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Native&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Standard&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Native&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Pro/Team&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Native&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0.75pt;"&gt;   &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you derive a class from &lt;a href="http://msdn.microsoft.com/en-us/library/7k3448yy%28VS.80%29.aspx"&gt;CObject&lt;/a&gt;, you can override the &lt;b&gt;Dump&lt;/b&gt; member function to provide additional information when you use &lt;a href="http://msdn.microsoft.com/en-us/library/dz54x5wt%28VS.80%29.aspx"&gt;DumpAllObjectsSince&lt;/a&gt; to dump objects to the &lt;a href="http://msdn.microsoft.com/en-us/library/3hk6fby3%28VS.80%29.aspx"&gt;Output window&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The &lt;b&gt;Dump&lt;/b&gt; function writes a textual representation of the object's member variables to a dump context (&lt;a href="http://msdn.microsoft.com/en-us/library/y2h42a93%28VS.80%29.aspx"&gt;CDumpContext&lt;/a&gt;). The dump context is similar to an I/O stream. You can use the append operator (&lt;b&gt;&lt;&lt;&lt;/b&gt;) to send data to a &lt;b&gt;CDumpContext&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When you override the &lt;b&gt;Dump&lt;/b&gt; function, you should first call the base class version of &lt;b&gt;Dump&lt;/b&gt; to dump the contents of the base class object. Then output a textual description and value for each member variable of your derived class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The declaration of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dump&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; function looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl05other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1062" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1062" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;class CPerson : public CObject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;public:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#ifdef _DEBUG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;virtual void   Dump( CDumpContext&amp;amp; dc ) const;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#endif&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;CString   m_firstName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;CString   m_lastName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;// And so on...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Because object dumping only makes sense when you are debugging your program, the declaration of the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dump&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; function is bracketed with an &lt;b&gt;#ifdef _DEBUG / #endif&lt;/b&gt; block.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;In the following example, the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Dump&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; function first calls the &lt;b&gt;Dump&lt;/b&gt; function for its base class. It then writes a short description of each member variable along with the member's value to the diagnostic stream.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl06other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1063" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1063" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#ifdef _DEBUG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;void CPerson::Dump( CDumpContext&amp;amp; dc ) const&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;// Call the base   class function first.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;CObject::Dump(   dc );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;// Now do the   stuff for our specific class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;dc &lt;&lt;   "last name: " &lt;&lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;&lt;   "first name: " &lt;&lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#endif&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;You must supply a &lt;b&gt;CDumpContext&lt;/b&gt; argument to specify where the dump output will go. The Debug version of MFC supplies a predefined &lt;b&gt;CDumpContext&lt;/b&gt; object named &lt;b&gt;afxDump&lt;/b&gt; that sends output to the debugger.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="" border="0" cellpadding="0"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="javascript:CopyCode('ctl00_rs1_mainContentContainer_ctl07other');"&gt;&lt;span style="text-decoration: none;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1064" type="#_x0000_t75" alt="" style="'width:7.5pt;height:6.75pt'" button="t"&gt;    &lt;v:imagedata src="file:///D:\USERPR~1\sshende\LOCALS~1\Temp\msohtmlclip1\01\clip_image002.png" href="http://i.msdn.microsoft.com/Platform/Controls/CodeSnippet/resources/copy_off.gif"&gt;   &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img src="file:///D:/USERPR%7E1/sshende/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image003.gif" shapes="_x0000_i1064" border="0" width="10" height="9" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;Copy Code&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;CPerson* pMyPerson = new CPerson;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// Set some fields of the CPerson object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;//...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;// Now dump the contents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#ifdef _DEBUG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;pMyPerson-&gt;Dump( afxDump );&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;#endif&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-2182202217091249750?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/2182202217091249750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=2182202217091249750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2182202217091249750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2182202217091249750'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/12/cobject-class.html' title='CObject Class'/><author><name>sandy</name><uri>http://www.blogger.com/profile/02503582209971047801</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-4507418809451282880</id><published>2008-11-11T22:12:00.000-08:00</published><updated>2008-12-22T20:58:09.431-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Transperent Edit Box</title><content type='html'>&lt;title&gt;Creating a transparent edit box&lt;/title&gt;&lt;table style="font-family: trebuchet ms;" cellpadding="0" cellspacing="0" width="746"&gt; &lt;center&gt; &lt;/center&gt;&lt;tbody&gt; &lt;tr&gt; &lt;td align="left" valign="top" width="744"&gt; &lt;p style="margin-top: 0px;"&gt;&lt;span style="font-size:100%;"&gt;Background of a window is not  always white. Sometimes it may be green or gray. When we create a control like  combo box or edit box the color of these controls turn out to be same as the  background color of the window. This article seir background by default is  white. White colored controls on green or gray background do not look very  impressive. So instead of letting the edit box or the list box getting created  in white color we can create them as controls with transparent background. When  we do so the background knows how to create a transparent edit box so that it  will get displayed in the color which is same as its parent window. You can use  similar logic for other controls as well. An edit box is created using the  object of &lt;b&gt;CEdit&lt;/b&gt; class. The &lt;b&gt;CWnd::OnCtlColor( ) &lt;/b&gt;function has been  overridden in the view class &lt;b&gt;CChildview&lt;/b&gt;. In this function a NULL brush  has been created and returned. The &lt;b&gt;OnCtlColor( )&lt;/b&gt; function is called  whenever the child control is to be drawn. Since a NULL brush is returned from  the function the control is redrawn using the NULL brush thereby creating a  transparent edit box.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;center&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/center&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="Transeditbox.zip"&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p style="font-family: trebuchet ms;" align="left"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-4507418809451282880?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/4507418809451282880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=4507418809451282880' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4507418809451282880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4507418809451282880'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/11/transperent-edit-box.html' title='Transperent Edit Box'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-2548087003252002485</id><published>2008-11-11T22:10:00.000-08:00</published><updated>2008-12-22T20:58:09.432-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Owner Drawn Combo Box</title><content type='html'>&lt;title&gt;Creating ownerdrawn combo box&lt;/title&gt;&lt;table style="font-family: trebuchet ms;" cellpadding="0" cellspacing="0" width="755"&gt; &lt;center&gt; &lt;/center&gt;&lt;tbody&gt; &lt;tr&gt; &lt;td align="left" valign="top" width="753"&gt;&lt;span style="font-size:100%;color:#000000;"&gt;By  default, items in a combo box consist of strings of text. Should you need a  combo box that displays graphical images instead of text, you can create an  owner-drawn combo box. To create the owner-drawn combo box a class is derived  from &lt;b&gt;CComboBox&lt;/b&gt;. An object of the derived class is created and  &lt;b&gt;CComboBox::Create( )&lt;/b&gt; is called to create the combo box.  &lt;b&gt;CComboBox::MeasureItem( ) &lt;/b&gt;and &lt;b&gt;CComboBox::DrawItem( )&lt;/b&gt; are  overridden. When an item in an owner-drawn combo box needs to be drawn (or  redrawn), Windows sends the combo box's parent a&lt;b&gt; WM_DRAWITEM&lt;/b&gt; message with  a pointer to a &lt;b&gt;DRAWITEMSTRUCT&lt;/b&gt; structure containing all the information  required to do the drawing, including a device context handle and a 0-based  index identifying the item to be drawn. Before the first &lt;b&gt;WM_DRAWITEM&lt;/b&gt;  &lt;b&gt;&lt;/b&gt;message arrives, the combo box's parent receives one or more  &lt;b&gt;WM_MEASUREITEM&lt;/b&gt; messages requesting the height of the items in the combo  box. In this program an array of colors is created which is used to draw the  combo box items when the window receives &lt;b&gt;WM_DRAWITEM&lt;/b&gt; message. The  &lt;b&gt;DeflateRect( )&lt;/b&gt; function decides the gap between two items. A rectangle is  drawn around the item on which the cursor is placed. The color for highlighted  item is retrieved using &lt;b&gt;::GetSysColor( )&lt;/b&gt; function.&lt;br /&gt;&lt;/span&gt;&lt;p&gt; &lt;/p&gt;&lt;center&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/center&gt; &lt;p&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;a href="combo1.zip"&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-2548087003252002485?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/2548087003252002485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=2548087003252002485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2548087003252002485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/2548087003252002485'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/11/owner-drawn-combo-box.html' title='Owner Drawn Combo Box'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-4322322368791762998</id><published>2008-11-11T22:09:00.000-08:00</published><updated>2008-12-22T20:58:09.432-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Creatin Directory Tree Control With Check Boxes</title><content type='html'>&lt;span style="font-family: trebuchet ms;font-family:Arial;font-size:100%;color:#000000;"   &gt;This program displays entire directory  structure of all the drives in a tree control. The tree control also displays  check boxes in front of each directory which can be used to select or deselect  the directory. We have created round check boxes instead of traditional square  check boxes. User can check or uncheck the directory by clicking on the check  box. Whether all of the sub-directories are checked can be known by the grayed  bitmap displayed in front of the parent directory.&lt;br /&gt;&lt;br /&gt;Generally directory  tree with check boxes is needed while creating an anti-viral software in which  user can check or uncheck the directories depending upon whether he wants to  scan the directory or not.&lt;br /&gt;Check boxes actually are bitmaps using which  image list is created and images are loaded depending on the status  (Checked/Unchecked) of the directory.&lt;br /&gt;&lt;br /&gt;In this program, firstly only the  drives are displayed with checked status. When user double clicks on the label  or clicks on the plus sign the tree is expanded and directories of that drive  are displayed in. Since the drive is checked all the directories also are  displayed with checked sign. Now if the drive is unchecked all the directories  also become unchecked.&lt;br /&gt;This control only displays directories. You can  anytime modify this program to display files of the selected directory.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style="font-family: trebuchet ms;" align="center"&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: trebuchet ms;"&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;a href="dirtree.zip"&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379524405279263165-4322322368791762998?l=visualcplusplustutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualcplusplustutorial.blogspot.com/feeds/4322322368791762998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8379524405279263165&amp;postID=4322322368791762998' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4322322368791762998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379524405279263165/posts/default/4322322368791762998'/><link rel='alternate' type='text/html' href='http://visualcplusplustutorial.blogspot.com/2008/11/creatin-directory-tree-control-with.html' title='Creatin Directory Tree Control With Check Boxes'/><author><name>Siebel Expert</name><uri>http://www.blogger.com/profile/11533458660230230361</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8379524405279263165.post-7749816688955181722</id><published>2008-11-11T22:08:00.000-08:00</published><updated>2008-12-22T20:58:09.432-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Priting List View Control Items</title><content type='html'>&lt;table style="font-family: trebuchet ms;" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt; &lt;tr&gt; &lt;td width="100%" height="1"&gt;&lt;p align="justify"&gt;&lt;span style="font-size:100%;"&gt;Many a times we need to print the  contents listed in a list control. For example, generally in an anti virus  software the details such as which files are infected, cured, quarantined etc.  are listed in a list control which user may wish to print. We can implement the  logic to print the list control. Here, we intend to print a list control in  which filename, file size and date are displayed.&lt;/span&gt; &lt;/p&gt; &lt;p align="justify"&gt;&lt;span style="font-size:100%;"&gt;Create an SDI application and derive  the view class from &lt;b&gt;CListView &lt;/b&gt;class. Add appropriate columns and data to  the list control. Here we will discuss only the handlers that are used for  printing. Firstly add the following variables to the view class:&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;CStringList m_prnlist, m_reportlist ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;CFont m_prnfont ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;int ht, wd, linesperpage, charsperline, maxpage ;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;Modify the &lt;b&gt;OnPreparePrinting( )&lt;/b&gt; function as shown  below. Here, we have read the data from the list control and added it in a  &lt;b&gt;CStringList&lt;/b&gt;. We have also added the column names to the list.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;BOOL CSortlistView::OnPreparePrinting ( CPrintInfo* pInfo  )&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;{&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    m_reportlist.RemoveAll( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    CString str, temp ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    str.Format ( "%25s %25s %25s", " Filename", " Size ", "  Date " ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    m_reportlist.AddTail ( str ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    int listcount = GetListCtrl( ).GetItemCount( ) ;&lt;/span&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    for ( int i = 0 ; i &lt;&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        str.Format ( "%2d. ", i ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        for ( int j = 0 ; j &lt;&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            temp.Format ( "%25s", GetListCtrl( ).GetItemText (  i, j ) ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            str += temp ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        }&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        m_reportlist.AddTail ( str ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    }&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    return DoPreparePrinting ( pInfo ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;}&lt;/span&gt; &lt;/p&gt; &lt;p align="justify"&gt;&lt;span style="font-size:100%;"&gt;Let us now create a font in which the  contents of the list control would be printed. Also, we need to calculate the  characters per line, number of pages to be printed etc. This has been done in  the&lt;b&gt; OnBeginPrinting( )&lt;/b&gt; function as shown below:&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;void CSortlistView::OnBeginPrinting ( CDC* pDC, CPrintInfo*  pInfo )&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;{&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    m_prnfont.CreatePointFont ( 100, "Arial", pDC ) ;&lt;/span&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    CFont *prevfont = pDC -&gt; SelectObject ( &amp;amp;m_prnfont  ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    TEXTMETRIC tm ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    pDC -&gt; GetTextMetrics ( &amp;amp;tm ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    ht = tm.tmHeight + tm.tmExternalLeading ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    wd = tm.tmAveCharWidth + 1 ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    int vertpixels = pDC -&gt; GetDeviceCaps ( VERTRES )  ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    int horzpixels = pDC -&gt; GetDeviceCaps ( HORZRES )  ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    CSize sz ( horzpixels, vertpixels ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    pDC -&gt; DPtoLP ( &amp;amp;sz ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    linesperpage = sz.cy / ht ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    charsperline = sz.cx / wd ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    linesperpage -= 10 ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    CString tempstr ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    POSITION temppos = m_reportlist.GetHeadPosition( )  ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    int tempcount = m_reportlist.GetCount( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    m_prnlist.RemoveAll( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    for ( int i = 0 ; i &lt;&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        tempstr = m_reportlist.GetNext ( temppos ) ;&lt;/span&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        m_prnlist.AddTail ( tempstr ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    }&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    POSITION prnpos = m_prnlist.GetHeadPosition( ) ;&lt;/span&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    POSITION posprev1, posprev2 ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    int prncount = m_prnlist.GetCount( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    CString str, pa ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    for ( i = 0 ; i &lt;&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;    {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        if ( prnpos == NULL )&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            break ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        posprev1 = posprev2 = prnpos ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        str = m_prnlist.GetNext ( prnpos ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        int len = str.GetLength( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        if ( len &gt; charsperline )&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;        {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            int linecount = max ( 1, ( len + ( charsperline -  1 ) ) /&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            charsperline ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            CString leftstr ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            int remainlen, leftlen = 0 ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            for ( int j = 0 ; j &lt;&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            {&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                leftstr = str.Left ( charsperline ) ;&lt;/span&gt;  &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                m_prnlist.InsertAfter ( posprev2, leftstr )  ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                leftlen += leftstr.GetLength( ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                remainlen = len - leftlen ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                m_prnlist.GetNext ( posprev2 ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;                str = str.Right ( remainlen ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            }&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            str = "" ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            pa = m_prnlist.GetAt ( posprev1 ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; line-height: 100%;"&gt;&lt;span style="font-size:100%;"&gt;            m_prnlist.RemoveAt ( posprev1 ) ;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-top: 0px; margin-bottom: 0px; word
