After installing Visual Studio 2008, It is recommended to run Windows Updates to ensure whether the below updates have been installed? If not then one should install them.
Microsoft Visual Studio 2008 Service Pack 1 ATL for Smart Devices (KB973675)
Microsoft Visual Studio 2008 Service Pack 1 (KB971092)
Microsoft Visual Studio 2008 Service Pack 1 (KB972222)
Otherwise, It will throw compilation errors as listed below when you compile your source code.