100分求指出下面代码的错误,如何更正,不够再加!! 只是NetShareEnum有错,不知道错怎么改才全部贴上来的.. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 提示错误如下:f:\myproject\windowsapplication1\form1.cs(142,19): error CS0029: 无法将类型“WindowsApplication1.frMain.SHARE_INFO_1”隐式转换为“System.IntPtr”f:\myproject\windowsapplication1\form1.cs(145,8): error CS1502: 与“WindowsApplication1.frMain.NetShareEnum(string, uint, ref System.IntPtr, uint, ref uint, ref uint, ref uint)”最匹配的重载方法具有一些无效参数f:\myproject\windowsapplication1\form1.cs(145,32): error CS1503: 参数“3” : 无法从“System.IntPtr”转换为“ref System.IntPtr” 没错,你的api引用有问题,在类型转化的时候没有正确的设置 楼主的代码是不是从这个连接上看到的?你好像没有看完全吧!Marshal.PtrToStructure这段调用,你的代码中没有。如果想找更多的资料,你到google上找:NetShareEnum C#即可。 哦,我知道ildasm了,谢谢楼上各位!我再试一下! [提问]关于DataGridView中添加ComboBox实现下拉框的问题 C# 本地化文法转换 ListView 项宽度,怎么调 获取存储过程output参数出错! 怎么定义 HttpPostedFile 的变量 C#程序中调用其他程序出现问题 在winform中,datagrid问题 大家帮我看看这小段代码; 如果读取文件的指定行? repeater、datalist、listview控件可以实现自动分页吗? 为什么webservice中调用正常,而在客户端调用时无法调用? 100分求压缩解压缩字符串代码
f:\myproject\windowsapplication1\form1.cs(142,19): error CS0029: 无法将类型“WindowsApplication1.frMain.SHARE_INFO_1”隐式转换为“System.IntPtr”
f:\myproject\windowsapplication1\form1.cs(145,8): error CS1502: 与“WindowsApplication1.frMain.NetShareEnum(string, uint, ref System.IntPtr, uint, ref uint, ref uint, ref uint)”最匹配的重载方法具有一些无效参数
f:\myproject\windowsapplication1\form1.cs(145,32): error CS1503: 参数“3” : 无法从“System.IntPtr”转换为“ref System.IntPtr”