从非托管Excel Addin(XLL)

时间:2017-03-08 21:25:04

标签: c++ excel-interop xll

我试图从常规C ++ Excel Addin(不是Excel DNA)调用C#dll 我在项目中添加了额外的C ++文件,并在其上启用了CLI支持。 代码执行正常。当我关闭Excel时,它会崩溃。可能是什么原因?

堆栈跟踪

MSO.DLL!6b4d21a6() 
[Frames below may be incorrect and/or missing, no symbols loaded for MSO.DLL]
MSO.DLL!6b43d95b() 
EXCEL.EXE!0140fcfe() 
msvcr100.dll!@_EH4_CallFilterFunc@8()  + 0x12 bytes
msvcr100.dll!__except_handler4_common()  + 0x86 bytes
EXCEL.EXE!022cead6() 
ntdll.dll!ExecuteHandler2@20()  + 0x26 bytes
ntdll.dll!ExecuteHandler@20()  + 0x24 bytes
ntdll.dll!_KiUserExceptionDispatcher@8()  + 0xf bytes
EXCEL.EXE!01084d52() 
EXCEL.EXE!01e40e70() 

0 个答案:

没有答案