Add AfxOle.h to Your Precompiled Header File

The MFC OLE support is kept in a separate extension header file, AfxOle.h. Because several Scribble implementation files refer to the MFC OLE classes, it is a good idea to include it in Stdafx.h, the precompiled header for Scribble.

Suggested Reading

To add Afxole.h to the precompiled header file

  1. From FileView, open Stdafx.h (under the Header Files folder) and add the following #include statement:
    #include <afxole.h>        // MFC OLE support
    
  2. Save the file.