Project structure
 

We recommend that you create your buffer manager project as follows. Create a directory, e.g., z:\cs432\A1. Assume the skeleton code is copied to the following two directories :

z:\cs432\A1\globaldefs\*.[Ch]   <=== Contains all the source code files needed to make the static library "globaldefs.lib".

z:\cs432\A1\code\*.[Ch]           <=== Contains all the source code files for the buffer manager.

Inside Visual C++ (Version 6.0 as installed in the undergraduate lab):

Create a "Win32 Console Application" (we call ours "BufferManager") in the location "z:\cs432\A1 ":

Create a "Win32 Static Library" (we call ours "globaldefs") and add it to current workspace making it a dependency of "BufferManager": Adding files to projects "BufferManager" and "globaldefs". You must change the settings for projects BufferManager and globaldefs to include the directories where the header files are located. For example, the project globaldefs needs to include the header file "bufmgr.h", which is located in the directory code. Add flag "/Iz:\cs432\A1\BufferManager" 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 start coding 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 either check the Visual C++ online help, ask your neighbor in the lab how to set up the project, or send email to the TAs or the instructor.