现在需要调用c++中一个dll中函数
void Request (char* EntPara[in],char* RetPara[out],Short *iRetValue[in,out] )
-
[DllImport("XXX.dll")]
-
public static extern void Request(string EntPara, StringBuilder RetPara, out short iRetValue);
-
-
static void Main(string[] args)
-
{
-
string entpara = "XXXXXXX";
-
StringBuilder retpara = new StringBuilder(1024);
-
short iretvalue = 1;
-
Request(entpara, retpara, out iretvalue);
-
Console.ReadLine();
-
}