interopservices

    0热度

    2回答

    我们试图在MVC应用程序上使用Office Interop Services打开驻留在共享驱动器上的Word模板。解决方案在本地工作,但一旦部署到服务器出现以下消息: The File was not created: System.Runtime.InteropServices.COMException (0x800A1436): This file could not be found A

    0热度

    1回答

    我想使用Microsoft.Interop.Word以编程方式打开Word文档,并将注释插入表格单元格。 我有单元格范围的开始和结束位置。 (Range.Start \ Range.End) Application.ActiveDocument.Select(); // select ative document Range rg = Application.Selection.Range; /

    1热度

    1回答

    我有一个问题,我的编译器无法导入kernel32.dll,通过我使用System.Runtime.InteropServices。这里是代码: using System; ... using System.Runtime.InteropServices; namespace server { class Debugconsole {

    1热度

    1回答

    我有C#的Windows服务类: class MyService : ServiceBase { private void InitializeComponent() { //some other code ... SafeHandle sHandle = this.ServiceHandle; // I want to do this but this fai

    2热度

    1回答

    大家下午好(阿根廷时间),我已经收到一个项目,系统根据客户的一些要求格式化一个word文档。我收到的单词文件在.doc上,而且我以不同的格式或内部设计导出或创建的单词文档是.docx。核心是这个代码用于处理Office12程序集,但是当我添加了Office15的新程序集时,它崩溃了。 ,我使用的proyect的所述部分的代码示例其中流动崩溃如下: public void Prueba()

    0热度

    1回答

    我正在导入我的C#代码中的非托管dll。 .h文件描述如图所示波纹管 DLL_API int __stdcall SetConfiguration(IN char* configuration); DLL_API int __stdcall GetErrorMessage_UTF16( INOUT int* errorGroup, INOUT char* errorCode,

    0热度

    2回答

    更新1: 我想知道我是否可以参考到的.lib文件,但似乎我不能。 如果这是真的,并且我没有C++项目的源代码,我该如何使用它的方法? 顺便说一句,我正在使用FastCV库。 我遇到,我需要调用从C#代码C++方法的情况。 的C++生成的文件结构: lib --libfastcv.lib --vc120.pdb inc --fastcv.h --fastcv.inl --stdint.h

    5热度

    1回答

    背景信息: 我正在构建一个运行在VBA上的SCADA系统,我寻求C#的一些功能。我在C#中构建了一个DLL库,并获得了在DLL和VBA之间流动的基本数据。 [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual)] public class BE_Log { public string DateTime {

    0热度

    1回答

    我不习惯使用InteropServices,但我正在使用WMPLib播放控制台应用程序中的歌曲。 当我从Visual Studio进行调试时,该应用程序按预期工作。但它崩溃,并让我有以下异常: Unhandled Exception: System.Runtime.InteropServices.COMException: The message filter indicated that the

    2热度

    1回答

    我有一个C++类,其具有头部(matrixheader.h),使得: #pragma once class M { public: M(int m,int n); void MSet(int m,int n,double d); double MGet(int m,int n); ~M(); private: d