Please run vsdept32.sql before running the sample application. To compile the project with VC++ 5.0 change the settings of the project to point to "omfc50.lib" .