X xl4772 Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-20 #1 我有个背景图片bmp格式,为了防止被误删,而使得程序不能正常运行。 想把这个图片放进.res或者.dll,请问怎么操作?
T tseug Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-20 #2 网上多的是 参考 http://www.pconline.com.cn/pcedu/empolder/gj/delphi/0507/656679.html
李 李翔鹏 Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-20 #3 function TL_DataFormatImportF.ExtractRes(ResNewName, rcname, rctype: string): boolean; var Res: TResourceStream; begin try Res := TResourceStream.Create(Hinstance, rcname, Pchar(rctype)); try Res.SavetoFile(ResNewName); Result := true; finally Res.Free; end; except Result := false; end; end; 取出资源文件。
function TL_DataFormatImportF.ExtractRes(ResNewName, rcname, rctype: string): boolean; var Res: TResourceStream; begin try Res := TResourceStream.Create(Hinstance, rcname, Pchar(rctype)); try Res.SavetoFile(ResNewName); Result := true; finally Res.Free; end; except Result := false; end; end; 取出资源文件。
X xmcccc Unregistered / Unconfirmed GUEST, unregistred user! 2008-08-20 #4 下过 Resource Builder资源编辑器,比DELPHI那个强大N倍,生成RES文件,再把这个RES文件连接到DLL,编译DLL,资源就在DLL了