Project structure
 

We recommend that you create your buffer manager project as follows:

Assume the skeleton code is copied to the following two directories :

z:\cs432\globaldefs\*.[Ch]   <=== Contains all the source codes needed to make static library "globaldefs.lib"
      (Actually, "bufmgr.h" is not there, I'll talk about this later)

z:\cs432\Proj1\*.[Ch]          <=== Contains all the source codes for the Bufmgr.

Inside Visual C++:

Create a "Win32 Console Application" (we call ours "Proj 1").

Create a "Win32 Static Library", add it to current workspace making it a dependency of "Proj1". Add files to project "Proj1" and "globaldefs" You must change the "Settings" for project 'Proj1" and "globaldefs", to include the directories where the header files are located. For example, "globaldefs" will include "bufmgr.h", which locates at \Proj1. So, you'll add flag "/Iz:\cs432\Proj1" to the Project option of "globaldefs". This can be done as following:         Now you are ready to change the code and build the application, you can begin by opening the bufmgr.cpp file in your project.
If you don't know how to do any steps explained above, the fastest approach is to check Visual C++ online help or ask your neighbor.