解决方案 »
- BatchInsert
- private void dgv_CellClick函数为何失效
- 高手看看, 一样的错误不一样的原因. 又是调用非托管DLL的问题, PInvoke函数出错, 堆栈不对称.
- 计算c#读取文本文件的时间计算
- 有关设置计算机名称和工作组的问题?
- 一条数列求值问题,找到规律了,但不知道如何下手写代码:
- C#语音聊天的问题
- C#中关于一段ORACLE的链接串
- 有关动态编译执行后,释放内在资料的问题,分不够再加
- WebClient.UploadData 传IPV6 URI问题
- 点击buttoncolumn如何获取DataGrid.SelectedIndex的值
- SqlDataAdapter对象Fill()方法出错,请大佬们指点下
///nNeedReply: int
///nMsgLevel: int
///sServiceID: char*
///nMsgFormat: int
///sFeeType: char*
///sFeeCode: char*
///sValidTime: char*
///sAtTime: char*
///sChargeTermID: char*
///sDestTermID: char*
///sReplyPath: char*
///nMsgLen: int
///sMsgContent: char*
///sMsgID: char*
///nErrorCode: int*
[System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint="SMGPSendSingle", CallingConvention=System.Runtime.InteropServices.CallingConvention.StdCall)]
public static extern int SMGPSendSingle(int nNeedReply, int nMsgLevel, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sServiceID, int nMsgFormat, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sFeeType, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sFeeCode, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sValidTime, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sAtTime, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sChargeTermID, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sDestTermID, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sReplyPath, int nMsgLen, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sMsgContent, System.IntPtr sMsgID, ref int nErrorCode) ;
sMsgID指向内存的所有权不明,暂时用System.IntPtr(也就是.Net里面的void*)列集。
int *nErrorCode = ref int nErrorCode