June 2009 Entries

Subclassing to Extend Controls and Windows

Purpose of Article I’m sure that there are a ton of articles out there regarding how to subclass windows. The purpose of this article is to walk through the entire process of why you might want to subclass a window, how to look at the window hierarchy, and then how to actually do the subclassing. At PaperWise (http://www.paperwise.com), we have a new architecture that is .NET and an older architecture that is COM, C++, and VB6. While VB6 is a powerful language, I am sure that you would agree that...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Restricting a View Based on User

I worked on a project for PaperWise a few months ago where I needed to restrict the results of a SQL view based upon the user executing queries against that view. To do that, I needed some way to tie the query being executed on the view to the user executing it. The problem is that subsequent queries in PaperWise don’t necessarily identify the user executing them. PaperWise uses standard SQL Server authentication and not Windows NT authentication, which means that we have a Users table in our database...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati