文件名称:C#调用dll的说明
文件大小:31KB
文件格式:DOC
更新时间:2015-06-21 15:14:16
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); Text = vDest.ToString(); }