B
blues hu
Unregistered / Unconfirmed
GUEST, unregistred user!
以下是我的代码,可我的pavi只是资源的前几个字符,dll中肯定有我要的avi<br> DllHandle := LoadLibrary(pchar('epys.dll'));<br> ResHandle:=FindResourceHInstance(dllhandle);<br> if resHandle > 0 then<br> try<br> hres:=FindResource(ResHandle,pchar('loader'),'AVI');<br> resource := LoadResource(ResHandle, hRes);<br> if resource>32 then<br> pavi:= LockResource(Resource);<br> animate1.resname:=pavi;<br> animate1.Active :=true;<br> finally<br> FreeLibrary(DllHandle);<br> FreeResource(resource);<br> end;<br>