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; } 水晶报表数据源的问题 正则表达式 怎么判断所有可打印字符 为以后扩展方便,我把DATAMODEL做成了像PETSHOP4的那样! VS2005(C#)的全角问题 急求:我做一个登录界面.用户登录三次不成功就自动退出.这个操作怎么实现 急!!!!winform 运行时不显示窗体 空格问题 C#中ComoBox小问题 关于数据库连接问题,请大家帮忙? 100分相送,关于应用程序发布的问题? 关于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;
}