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.
To add Afxole.h to the precompiled header file
#include <afxole.h> // MFC OLE support