Motoring A Web Cam

Compiling, Linking and Initializing

 

  1. This first step of this stage is to go through the tutorial on setting up my web application for modifications. To do this, click on this link: modify me.

  2. Once this is done you are just about there.  First off, open Visual Studio .NET. Once open you need to open a project.  You need to open the projected located at. C:\Documents and Settings\kevin\My Documents\Visual Studio Projects\WebApplication2, and open WebApplication2.

  3. Once this is opened you can look through my code and modify it as you desire.  To see the different pages you may want to work in look at the solutions explorer box and choose the page.

    • Global.asax - Probably won't want to modify much here.  This is a global page that is automatically created when making a web application.  It has functions that are automatically called whenever a page in the program is opened.

    • Web.config - Another page automatically created when making a web application.  This page is used to define such things as if you want to use custom error messages, what kind of authentication for your website (none allows all, forms are for databases, and passport for a high cost way of doing things).  It also shows here the users that have permission (if using windows authentication)  and also goes through a few other things that are shown on the page.

    • Addlogin.aspx - This page is used to add a new user to the database users.xml. The user name is stored and the password is stored encrypted

    • Login.aspx - This is the Login page. Users are redirected here when they first open the program.  The main page if users are not logged in yet which they will not be for most cases will redirect them to this page.  From here they will log in or press to another link in which they can add a new user and then come back and log in.

    • Redeme.aspx - This page is used for when the user is inactive for more than 30 seconds. When this occurs the webform1.aspx page will do a META Tag refresh to redirect to this page. This page will then take the current user counter from Webform1 and decrement it by one.  This is essentially terminating the users session and they have to log back in in order to get back to the pan/tilt webform1.aspx page. This will then show that there are no users in the program at the time and thus will allow another user to log into the system. It displays a button which will force a page close.

    • Redirect.aspx - This is a real simple page. If there is currently a user using the pan/tilt page then other users are redirected to this page which tells them to try again later.

    • Webform1.aspx - This is the main pan/tilt page.  This is the page in which pan and tilt are controlled. The user is automatically logged out after 30 seconds of no activity and redirected to another page which will close the window.

    • log.xml - this is my log file that logs each time a user comes onto the system. It saves the user name and it saves the time and date that they logged on.

    • users.xml - this is the xml document that stores user names and passwords.

  4. To compile and link is just like that of Visual C++ 6.0.  Just go to Build->Build WebApplication2.  Or just Build->Build Solution.  Then to run the program go to: Debug->Start Without Debugging.

  5. And from here the program should be working (providing that all the steps prior were followed correctly setting up IIS and everything else).