1.调用步骤:
C#调用C++的DLL,首先引入命名空间:using system.runtime.Interopservice;
在C#类中直接定义C++中的结构体并引用其中的公开方法:
public class SdkService{
[StructLayout(LayoutKind.Sequential)]
public struct _EVC_LCM_
{
[MarshalAs(UnmanagedType.U2)]
public ushort DevModuleNo;
[MarshalAs(UnmanagedType.U2)]
public ushort DevSubModuleNo;
[MarshalAs(UnmanagedType