tresourcestream 如何获取资源里的zip文件???(50)

M

mazheng

Unregistered / Unconfirmed
GUEST, unregistred user!
tresourcestream 如何获取资源里的zip文件??我把一个zip文件作为资源打入exe程序里,rc文件里格式为:myGzs RCDATA "工作室介绍.zip"当读取资源时却发生错误,请赐教!读取代码:myres:=tresourcestream.Create(hinstance,pchar('myGzs'),'RCDATA');application.ProcessMessages;myres.SaveToFile(MyTempPath+'/工作室介绍.zip');myres.Free;错误提示---------------------------Debugger Exception Notification---------------------------Project setup.exe raised exception class EResNotFound with message 'Resource myGzs not found'. Process stopped. Use Step or Run to continue.---------------------------OK Help ---------------------------
 

枝上柳绵

Unregistered / Unconfirmed
GUEST, unregistred user!
少了{$ myGzs.res}
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
547
SUNSTONE的Delphi笔记
S
顶部