我写了这样的代码但无法实现
begin
OpenDialog1.filter:='Skin files (*.skn)|*.SKN';
OpenDialog1.initialdir:='D:/学习/delphi/第三方控件/niker76_vclskin_v3.02/vclskin3/skins/';
if OpenDialog1.execute then
SkinData1.skinstore:=OpenDialog1.filename;
if not SkinData1.Active then
SkinData1.Active:=true;
skindata1.Free;
opendialog1.Free;
and
begin
OpenDialog1.filter:='Skin files (*.skn)|*.SKN';
OpenDialog1.initialdir:='D:/学习/delphi/第三方控件/niker76_vclskin_v3.02/vclskin3/skins/';
if OpenDialog1.execute then
SkinData1.LoadFromFile(OpenDialog1.filename);
if not SkinData1.Active then
SkinData1.Active:=true;
skindata1.Free;
opendialog1.Free;
and
还是出错提示是:
Project Project1.exe raised exception class EAccessViolation with massage 'Access violation at address 00000000,read pf address 00000000',Process stopped,Use Step or Run to continue.
我运行时候是连着数据库的,,不知道有没有影响
begin
OpenDialog1.filter:='Skin files (*.skn)|*.SKN';
OpenDialog1.initialdir:='D:/学习/delphi/第三方控件/niker76_vclskin_v3.02/vclskin3/skins/';
if OpenDialog1.execute then
[red]SkinData1.LoadFromFile(OpenDialog1.filename);[/red]
if not SkinData1.Active then
SkinData1.Active:=true;
and