C调用dll的说明
C#调用dll的说明。重点是如何传递字符串函数。 [DllImport(@"TempLib.dll")] public static extern void GetSqlData(string ASource, StringBuilder ADest, int ADestSize); private void button1_Click(object sender, EventArgs e) { StringBuilder vDest = new StringBuilder(1024); GetSqlData("Zswang", vDest, 1024); Tex