C
cafegowild
Unregistered / Unconfirmed
GUEST, unregistred user!
我通过GetVersionEx()获取系统版本信息,但编译时提示未声明GetVersionEx()。<br>请问在uses子句中加入什么单元即可。<br>不知如下程序是否可行?<br>unit OSVer;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs,单元名;<br><br>type<br> TForm1 = class(TForm)<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br> OS:TOSVersionInfo;<br><br>implementation<br><br>{$R *.dfm}<br><br> GetVersionEx(OS);<br> ShowMessage(IntToStr(dwOSVersionInfoSize));<br><br>end.