其他分享
首页 > 其他分享> > QT Word wdmain.chm [24632]

QT Word wdmain.chm [24632]

作者:互联网

昨天使用QT在word中插入图片,发现报错,查了一圈都说是路径问题,于是在qDebug中打印文件路径发现没有错误路径,之后进入debug发现是使用QString.Split()方法分割数据库字符串会出现空字符,没想到因为自己的一时偷懒浪费了将近一天的时间,因为我用的QT Creator控制台错误打印全是???,所以下面贴一下外网的完全解释,代码:24632 出现这种需要检查路径

com_error: (-2147352567, ‘An exception occurred.’, (0, ‘Microsoft Word’, 'This is not a valid file name.\nTry one or more of the following:\n* Check the path to confirm its typed correctly.\n * Please select a file from the list of files and folders. ‘,’ wdmain11.chm ', 24632, -2146823136), None)

标签:Word,QT,路径,chm,wdmain,file,24632
来源: https://blog.csdn.net/qq_41059339/article/details/120986949