A manual workaround for project 1 skeleton code to work
under Visual Studio 2008.
- Download
the
skeleton code and unzip the skeleton code
- Create
a new project file (File->New->Project), select Visual C++ (project
type) and Empty Project (template) and name the new project as iScissor.sln. The default location of the project file
is “C:\Documents and Settings\jhchen\My Documents\Visual Studio 2008\Projects\iScissor.sln\iScissor.sln”.
We will use $projectdir to denote the above
project location in the following steps. You will get a window like the
following picture.

- Now
you will have a project file without any files as shown below in your
solution explorer.

- Copy
the src directory of your skeleton code
directory to your project directory, $projectdir.
In other words, the src directory is located in
$projectdir/src. Select iScisscor.sln
in the solution explorer. Right click and Add->New Filter and name it
as ImageLib. Your solution explorer will look
like the following picture.

- Now,
you will need to manually add files into the project file. After all the
additions, the project file will look exactly the same as shown in the
following picture. Here are the details on how to add files to the
project. Select Header Files. Right click and Add->Existing item.
Select the header files from $projectdir/src. Do
the similar thing for Source Files. For ImageLib, select the files from $projectdir/src/ImageLib.

- Change
the properties of the project file as follows. Select iScissor.sln,
right click.
Select
Properties->Configuration Properties->C/C++. In the
right panel, adding your fltk directory ($fltk) to “Additional Include Directories”. For
example, the fltk is installed in C:\Program
Files\fltk-1.1.9 in Sieg 327 machines and you will
have a windows like this following picture.

Then, do the similar thing to add
an additional lib directory. In other words, Select
Properties->Configuration Properties->Linker.
In the right panel, adding your $fltk\lib directory to “Additional Library Directories”. For
example, the fltk is installed in C:\Program
Files\fltk-1.1.9\lib in Sieg 327 machines and you
will have a windows like this following picture.

Finally, change you additional
dependencies and ignore specific library. In other words, Select
Properties->Configuration Properties->Linker->Input. In the right
panel, adding to the following lib files to “Additional Directories”.
fltkgld.lib
fltkimagesd.lib comctl32.lib fltkd.lib
odbc32.lib odbccp32.lib opengl32.lib glu32.lib wsock32.lib
In the right
panel, adding to libcd to “Ignore Specific Library”.
After this operations, your property pages will look
like the following picture.

- Download
dirnet.h
that is dirent 1.8 from http://softagalleria.net/dirent.php
to your $fltk.
- You
can now build your solution by clicking Build->Build Solution. The code
should be able to be compiled and run correctly. If you use the release
mode from the default debug mode, you may repeat Step 6 again.
Note that this manual workaround is
not intensively tested. If you have a better way or you can share your
skeleton project, please email to your TA.
Last modified: 1/15/2009 4:36:29 PM