-2
我正在尝试打开使用C++编写的涉及Excel自动化的项目的MSO.dll。但是,当我尝试#导入MSO.dll时,出现“无法打开源文件”错误。我已将文件路径添加到其他包含目录(在项目 - >属性 - >配置属性 - > C/C++ - >常规)和链接器其他包含目录中。无法打开源文件
这里是我到目前为止的代码:
#pragma region Includes
#include <stdio.h>
#include <windows.h>
//#include "Solution1.h"
#pragma endregion
#pragma region Import the type libraries
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL" \
rename("RGB", "MSORGB") \
rename("DocumentProperties", "MSODocumentProperties")
using namespace Office;
请不要张贴文字的图片,而是张贴文字。 –
不知道,编辑了这篇文章。 – manrajt