Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Index Visual C++ and MFC Fundamentals



  1. Click Finish

  2. Create a new C++ source file (Project -> Add New Item... -> C++ File (.cpp)) and
    Name it Exercise

  3. Open Windows Explorer or My Computer

  4. Locate the folder that contains the above project: BusMath. Open its Debug folder
    and copy the BusMath.lib file. Display the contents of the BusMathTest1 folder and
    open the BusMathTest1 folder inside of it. Notice that it contains Exercise.cpp. Paste
    the BusMath.lib file in the same folder that contains Exercise.cpp

  5. From the BusMath project, copy the bmcalc.h header file. Still in Windows Explorer
    or My Computer, paste bmcalc.h it in the same folder that contains BusMath.lib and
    Exercise.cpp

  6. Back in Visual Studio, to add the library to the current project, on the main menu,
    click Project -> Add Existing Item. In the Files of Type combo box, select All Files

  7. In the list of files, click BusMath.lib

  8. Click Open

  9. Type the following in the empty Exercise.cpp file


#include <iostream>
#include "bmcalc.h"
using namespace std;
Free download pdf