S
SP229
Unregistered / Unconfirmed
GUEST, unregistred user!
我已把INI文件放到资源文件中
(M_NSize Ini M_NSize.ini)
并且我用下面的过程已把它读到流中,我的问题是如何不把它保存到本而在流中象操作INI一样操作它?
procedure LoadResIni(MS: TMemoryStream; N: integer);
var
R: TResourceStream;
begin
case N of
1:
R:=TResourceStream.Create(HInstance, 'M_NSize', 'Ini');
2:
R:=TResourceStream.Create(HInstance, 'W_NSize', 'Ini');
3:
R:=TResourceStream.Create(HInstance, 'T_NSize', 'Ini');
else
end;
R.SaveToStream(MS);
R.Free;
end;
(M_NSize Ini M_NSize.ini)
并且我用下面的过程已把它读到流中,我的问题是如何不把它保存到本而在流中象操作INI一样操作它?
procedure LoadResIni(MS: TMemoryStream; N: integer);
var
R: TResourceStream;
begin
case N of
1:
R:=TResourceStream.Create(HInstance, 'M_NSize', 'Ini');
2:
R:=TResourceStream.Create(HInstance, 'W_NSize', 'Ini');
3:
R:=TResourceStream.Create(HInstance, 'T_NSize', 'Ini');
else
end;
R.SaveToStream(MS);
R.Free;
end;