2013年9月12日星期四

C # how to pass C + + dll in the char (& content) [500] reference type parameter

content as char [500] array
C # output parameters when calling a DLL how to write ?
I am now writing is (ref Content), in which content is defined as char [] content = new char [500].

now invalid parameter error saying mean
------ Solution ---------------------------- ----------------
StringBuilder
------ Solution -------------------- ------------------------
this syntax I do not understand how the latest ?
int getpower (byte (& beam) [10])
------ For reference only ------------------- --------------------
online experts hope to answer
------ For reference only ----- ----------------------------------
artificial Sticky
------ For reference only ---------------------------------------
to hwenycocodq520: Well
Would you elaborate ?
------ For reference only ---------------------------- do not sink ah -----------

------ For reference only ---------------------------------------
call dll written in c + +
his header file write extern "c" _declspec (dllimport) int getpower (byte (& beam) [10])
should be how to pass parameters to write ?
parameter write (ref beam) beam as a byte array
reported method type signature is not compatible with the interop error

------ For reference only ---------------------------------- -----
problem has been resolved.

没有评论:

发表评论