编译没问题,调试出现:OLE初始化失败.请确保OLE库是正确的的版本

注释// 初始化 OLE 库
 /*if (!AfxOleInit())
 {
  AfxMessageBox(IDP_OLE_INIT_FAILED);
  return FALSE;
 }*/

原文地址:https://www.cnblogs.com/lovemyhuangmei/p/3191086.html