我用VS2005匯出了Excel的CApplication.h,CFont0.h,CRange.h",CWorkbook.h,CWorkbooks.h,CWorksheet.h,CWorksheets.h這7個頭檔案.
然后把它們拷貝到VS2019下,在某個cpp檔案下添加:
#include "Excel Files/CApplication.h"
#include "Excel Files/CFont0.h"
#include "Excel Files/CWorkbook.h"
#include "Excel Files/CWorksheet.h"
以上4個頭檔案時,都能編譯通過,
當添加陳述句#include "CRange.h"時,出現大量編譯錯誤,其中第一個錯誤是:”CRange.h(26,29): error C3646: “get_Application”: 未知重寫說明符”。
這個問題困擾了我很久,望大佬們能幫忙解決。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/246667.html
標籤:基礎類
上一篇:git 爛筆頭
