应该不是我程序问题吧?!代码如下:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, SPComm;
type
TForm1 = class(TForm)
Comm1: TComm;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
该程序运行,执行“开始”->“关机”,Windows不能关机。
删除COMM1控件及USES中的SPCOMM,正常。为什么?