Take a look at this chapter in a book by Dan Appleman

------------------
Marty