procedure TForm1.FormCreate(Sender: TObject);var
SN : pdword; a, b : dword; Buffer : array [0..255] of char; zhuce : String;begin
if GetVolumeInformation('d:\', Buffer, SizeOf(Buffer), SN, a, b, nil, 0) then zhuce := IntToStr(SN^);
if StrToInt(zhuce) = 4589564553 then
begin
if not assigned(form2) then form2 := TForm2.create(self);
Form2.Show;
end
else Label1.Caption := '欢迎您';end;
SN : pdword; a, b : dword; Buffer : array [0..255] of char; zhuce : String;begin
if GetVolumeInformation('d:\', Buffer, SizeOf(Buffer), SN, a, b, nil, 0) then zhuce := IntToStr(SN^);
if StrToInt(zhuce) = 4589564553 then
begin
if not assigned(form2) then form2 := TForm2.create(self);
Form2.Show;
end
else Label1.Caption := '欢迎您';end;
解决方案 »
- 找一种按钮,或者按钮的属性
- SQL2000数据库无法实现以下代码
- 那里有可以连接电脑控制声光报警设备
- 求助,一个简单的问题
- 如何把服务应用程序安装命令改成不是默认的 -install?
- 关于在Dbgrid中的记录指针定位问题.....
- 究竟有没有高手呀?究竟有没有高手呀?究竟有没有高手呀?用setupapi安装modem,不弹出硬件安装向导,怎么做呀?急!急!急!急!急!急!急
- 请问:在一个form create 的时候是先create form 上的控件然后再 create 自己吗?
- 两个与 WebBrowser 有关的高难问题:想得分的高手请进!!
- 窗体从模态对话框返回时,触发什么事件
- 堆与栈的问题
- 有关SQL语法的一个小问题。
SN : pdword; a, b : dword; Buffer : array [0..255] of char; zhuce : String;begin
if GetVolumeInformation('d:\', Buffer, SizeOf(Buffer), SN, a, b, nil, 0) then zhuce := IntToStr(SN^);
if StrToInt(zhuce) = 539564553 then Form2.Show
else Label1.Caption := '欢迎您';end;
FormShow里,谢谢了。