Q
qbtxx
Unregistered / Unconfirmed
GUEST, unregistred user!
如下是一段很简短的流操作~没有什么语法语句上的错误,可不知为什么老是要提示!并且释放不了dll文件到指定的目录里?程序Delphi编译通过了,可就是没用!
怎么样能不提示跳过去,并且然程序能自由释放我那DLL文件???急~!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{$R abc.res}
procedure pojie;
var
MM:TResourceStream;
begin
MM:= TResourceStream.Create(HInstance,'dll1','RC_Dll');
MM.SaveToFile('C:/Program Files/abc/aaa/abc.DLL');
MM.Free;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
pojie;
end;
end.
======================================================================
提示如下:
Debugger Exception Notfication
-------------------------------
Project Project1.exe raised exception class EResNotFound with message'Resource Dll1
not found'.Process stopped Use Step or Run to continue.
-------------------------------
View CPU Window [OK] [Help]
怎么样能不提示跳过去,并且然程序能自由释放我那DLL文件???急~!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{$R abc.res}
procedure pojie;
var
MM:TResourceStream;
begin
MM:= TResourceStream.Create(HInstance,'dll1','RC_Dll');
MM.SaveToFile('C:/Program Files/abc/aaa/abc.DLL');
MM.Free;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
pojie;
end;
end.
======================================================================
提示如下:
Debugger Exception Notfication
-------------------------------
Project Project1.exe raised exception class EResNotFound with message'Resource Dll1
not found'.Process stopped Use Step or Run to continue.
-------------------------------
View CPU Window [OK] [Help]