你好. 我正在使用已安装SP1的Windows 7和MS Visual Studio 2010 Prof. 如果使用此代码,我只是发现了一个错误: 字符串[]端口= SerialPort.GetPortNames(); 在.NET 2.0中,结果是:COM5i,COM6i,... 在.NET 3.5中,结果是:COM5i,COM6i,... 在.NET 4.0中,结果是:COM5,COM6,... 在Windows XP SP3中,结果始终是:COM5,COM6,... Windows 7 SP1中有bug吗?
Hello. I''m using Windows 7 with SP1 installed and MS Visual Studio 2010 Prof. I just found a bug if I use this code : string[] ports = SerialPort.GetPortNames(); in .NET 2.0, results are : COM5i, COM6i, ... in .NET 3.5, results are : COM5i, COM6i, ... in .NET 4.0, results are : COM5, COM6, ... in Windows XP SP3, the results are always : COM5, COM6, ... are there bugs in windows 7 SP1 ?
推荐答案为什么在这里问?转到Microsoft Connect网站,然后在此处发布您的问题. Why are you asking here? Go to the Microsoft Connect web site and post your issue there.
更多推荐
Windows 7 SP1如果使用SerialPort.GetPortNames()会出错?
发布评论