将参数传递给某些DLL的方法 [英] Passing Parameter to method from some DLL
本文介绍了将参数传递给某些DLL的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从dll使用这个方法,该方法有这样的参数:
EpcMultiTagIdentify(ref byte [,])但是idont知道如何传递变量这个方法。
请帮帮我。
解决方案
我可以给你更好的东西:http://subversion.assembla.com/svn/rsd_grp3/RFIDDemo/RFIDdemo/RFIDdemo/RFIDReader.cs [< a href =http://subversion.assembla.com/svn/rsd_grp3/RFIDDemo/RFIDdemo/RFIDdemo/RFIDReader.cstarget =_ blanktitle =New Window> ^ ]
......但你也可以自己找到它......
你好,
你刚才用它与其他参数的方式相同,但是当a方法使用引用参数时,它意味着对方法中的参数所做的更改会影响传递的变量。
见这里:
http://msdn.microsoft.com/en-us/library/14akc2c7.aspx [ ^ ]
Valery。
i want to use this method from a dll ,the method has argument like this:
EpcMultiTagIdentify( ref byte[,]) but idont know how to pass variable to this method.
please help me.
解决方案
I can give you somethin even better: http://subversion.assembla.com/svn/rsd_grp3/RFIDDemo/RFIDdemo/RFIDdemo/RFIDReader.cs[^]
...but you could have found it yourself too...
Hi,
You just use it the same way as other parameter, but the as the a method uses a reference parameter, it means that changes made to the parameter in the method is affecting the variable that was passed.
see here:
http://msdn.microsoft.com/en-us/library/14akc2c7.aspx[^]
Valery.
这篇关于将参数传递给某些DLL的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文