I rebuilt (after much difficulty) the C# sample (IE, OCC, shell) with VS2010. I had to change a few things: set up include and lib directories, change shell and occ to .NET 4 framework (because that was the framework that IE targeted after import to VS2010).
Since I am running 64-bit Windows 7, I had to change the IE target from "Any CPU" to x86 (since that is what shell and OCC targeted) otherwise I would get a cryptic MSoft error message saying a DLL had a bad format (attempt to call a 32-bit dll from 64-bit executable).
Now the program comes up but when I click File/New I get an error that it cannot find shell.dll or one of its dependencies. Shell.dll is in fact in the same directory as IE.exe and OCC.dll. So presumably it is complaining about one if its dependencies.
Am I missing something obvious? I don't see how to figure out what shell.dll dependencies are.