c#调用c++ api函数之参数类型问题-急(高人教教我) [StructLayout(LayoutKind.Sequential)]public struct colorstruct {... } 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有精通的朋友加我msn,做arcgis二次开发的更好,先谢谢大家了 估计是这样void CressmantestforSK(int a, int irad, ref float rads, int isiz, int jsiz, float dbCellSize, double lnmin, double lnmax, double ltmin, double ltmax, long stnnum, ref float stnlon, ref float stnlat, ref float stnrpt, ref float grid, IntPtr colorArray, int iLineNum, float NoDefineVale);colorArray参数通过Marshal.UnsafeAddrOfPinnedArrayElement();得到初始地址 考虑一下是否是字节边界对齐问题.尝试一下调整Layout的对齐大小 不好翻译的类型(指针)先用IntPtr代替,先把接口调试通过再想办法struct colorstruct{ public double dbValueInterval; public IntPtr str; public IntPtr ipColor; } 请教如何在DLL中封装串口 登陆界面制作,如何将login.aspx.cs文件中的控件 关于打印的问题哦! CSDN谜题 - -! c#皮肤包的问题! 关于控制台应用程序 画图问题 菜鸟问题-------webform中怎样实现窗口的关闭? 如何在C#中调用另外一个可执行应用程序 做.net的郁闷处......请广大.net程序员都进来看看. 关于DataAdapter的update 指定database的问题 正则表达式的问题,请大家帮忙!
void CressmantestforSK(int a, int irad, ref float rads,
int isiz, int jsiz, float dbCellSize,
double lnmin, double lnmax, double ltmin, double ltmax, long stnnum,
ref float stnlon, ref float stnlat, ref float stnrpt,
ref float grid, IntPtr colorArray, int iLineNum, float NoDefineVale);
colorArray参数通过
Marshal.UnsafeAddrOfPinnedArrayElement();
得到初始地址
struct colorstruct
{
public double dbValueInterval;
public IntPtr str;
public IntPtr ipColor;
}