update project to vs 2010
add definitions for dia100.dll and dia110.dll
reformat code for consistent 4-spaces indentation
undo stupid typedefs
small refactor of the code