Your example works fine and perfect but why It could not apply for my application?
My current project is using vs 2003 instead of vs 2008.