Index Visual C++ and MFC Fundamentals
- Click Finish
- Create a new C++ source file (Project -> Add New Item... -> C++ File (.cpp)) and
Name it Exercise - Open Windows Explorer or My Computer
- 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 - 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 - 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 - In the list of files, click BusMath.lib
- Click Open
- Type the following in the empty Exercise.cpp file
#include <iostream>
#include "bmcalc.h"
using namespace std;