[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
public virtual extern void SetData(int inType, int inColor, [MarshalAs(UnmanagedType.BStr)] string inData);想知道inData往里传什么样子的值?
public virtual extern void SetData(int inType, int inColor, [MarshalAs(UnmanagedType.BStr)] string inData);想知道inData往里传什么样子的值?
解决方案 »
- 求文件DotNetSpeech.dll
- 事件更改!!
- C#post提交带有特殊符号的数据老是出错
- 日期解析字符串
- 我有一个关于打印机的问题,如何能够获得打印机的相关属性,如打印机的状态,类型,位置?急!
- 我下载了个vs2005压缩文件怎么安装啊
- 各位老大,卸载程序中如何获得数据库连接语句?????
- 做象棋游戏 棋子载入用什么控件好picturebox数组?imagelist?还是listview啊?
- 求winform简捷美观的界面原码,有菜单栏和工具栏
- System.ArgumentOutOfRangeException:“索引和长度必须引用该字符串内的位置。 Arg_ParamName_Name”
- C# 如何判断一个字符串以400,800,1开头
- C#中以类的实例作为线程参数应该怎么操作
public class MSClass
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
public virtual extern void SetData(int Type, int Color, [MarshalAs(UnmanagedType.BStr)] string Data);
}
这是我在DLL写的
但我在引入这个dll后用
ms.SetData(1,0, "dlllll");
不好用,总是提示
对 COM 组件的调用返回了错误 HRESULT E_FAIL。