这个代码有错么?
public int Duration
{
get
{
string durLength ="";
durLength = durLength.PadLeft(128, Convert.ToChar(" "));
mciSendString("status song length", durLength, durLength.Length, 0); MessageBox.Show(durLength);
durLength = durLength.Trim();
if (durLength == "") return 0;
return (int)(Convert.ToDouble(durLength) / 10);
}
}
为什么messgebox显示都是空格?durlength为什么没有返回内容?durlength应该如何定义? --------------------编程问答-------------------- up
补充:.NET技术 , C#