请各位大哥给我看看这样的警告是什么意思? 贴出你调用WORD文档的部分代码看看。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 _Application oWord; Documents oDocs; _Document oDoc; Selection oSelection; Paragraphs oParagraphs; Tables oTables; Table oTable; Range oRange; Columns oColumns; Column oColumn; Rows oRows; Row oRow; Documents oDocument; Shapes oShapes; Shape oShape; Cells oCells; Cell oCell; Shading oShading; COleVariant vtOptional((long)DISP_E_PARAMNOTFOUND,VT_ERROR), vtTrue((short)TRUE), vtFalse((short)FALSE); CString StrToAdd; CString str; if (!oWord.CreateDispatch("Word.Application")) { AfxMessageBox("Æô¶¯wordʧ°Ü£¡!"); } else { oWord.SetVisible(TRUE); oDocs = oWord.GetDocuments();.........} win7下用代码使蜂鸣器报警 VC MFC RepositionBars 工具栏闪烁 关于显示服务器端文件图标的问题 如何将后台的业务逻辑部分改写为COM?? 怎样才能在创建表时指定一个长度大于255的VARCHAR型字段? 关于MFC中的光标问题。 请教一个问题。 将按钮移位后如何重绘? 一个奇怪的问题 如何获取记事本打开文件的路径 高手大侠!! 这是病毒还是冲突? ???????????????????????????????????
Documents oDocs;
_Document oDoc;
Selection oSelection;
Paragraphs oParagraphs;
Tables oTables;
Table oTable;
Range oRange;
Columns oColumns;
Column oColumn;
Rows oRows;
Row oRow;
Documents oDocument;
Shapes oShapes;
Shape oShape;
Cells oCells;
Cell oCell;
Shading oShading;
COleVariant vtOptional((long)DISP_E_PARAMNOTFOUND,VT_ERROR),
vtTrue((short)TRUE),
vtFalse((short)FALSE);
CString StrToAdd;
CString str;
if (!oWord.CreateDispatch("Word.Application")) {
AfxMessageBox("Æô¶¯wordʧ°Ü£¡!");
}
else
{
oWord.SetVisible(TRUE);
oDocs = oWord.GetDocuments();
.........
}