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 ---------------------------