Board index » delphi » Generic function for loading bmp, icon from resource DLL

Generic function for loading bmp, icon from resource DLL

Hi,

     At present all the bmp, icon are part of my EXE, Since the EXE file
size is huge,i want to move all the resources to DLL. I am trying to write a
generic function for loading resource at run time. I do not know how to get
resource from the DLL. Can any one help me to find solution for this
problem??

Regards,
R.Muralidharan

 

Re:Generic function for loading bmp, icon from resource DLL


Have you looked at the LoadFromResource function which is part of
TBitmap or you could use straight API calls such as LoadBitmap or
LoadIcon for for something more Generic you can use LoadImage which
loads Icon, Bitmaps or Cursors. Check the Win32 Programmer's help file
for more info.

L8R,

Dominique
http://www.DelphiGamer.com

Quote
Murali wrote:
> Hi,

>      At present all the bmp, icon are part of my EXE, Since the EXE file
> size is huge,i want to move all the resources to DLL. I am trying to write a
> generic function for loading resource at run time. I do not know how to get
> resource from the DLL. Can any one help me to find solution for this
> problem??

> Regards,
> R.Muralidharan

Re:Generic function for loading bmp, icon from resource DLL


"Murali" <Muralidh...@icode.com> p1e v diskusnm p?spvku
news:3b5d5774$1_2@dnews...

Quote
> Hi,

>      At present all the bmp, icon are part of my EXE, Since the EXE file
> size is huge,i want to move all the resources to DLL. I am trying to write
a
> generic function for loading resource at run time. I do not know how to
get
> resource from the DLL. Can any one help me to find solution for this
> problem??

> Regards,
> R.Muralidharan

In Delphi is program  RESXPLOR in DEMOs
There is loadingResources and writing to file used.

Re:Generic function for loading bmp, icon from resource DLL


... and for to move or to write icons into a dll, what can i do?
thanks
Nico

"Vojtch ?dek" <vksa...@volny.cz> ha scritto nel messaggio
news:3b814810_2@dnews...

Quote

> "Murali" <Muralidh...@icode.com> p1e v diskusnm p?spvku
> news:3b5d5774$1_2@dnews...
> > Hi,

> >      At present all the bmp, icon are part of my EXE, Since the EXE file
> > size is huge,i want to move all the resources to DLL. I am trying to
write
> a
> > generic function for loading resource at run time. I do not know how to
> get
> > resource from the DLL. Can any one help me to find solution for this
> > problem??

> > Regards,
> > R.Muralidharan

> In Delphi is program  RESXPLOR in DEMOs
> There is loadingResources and writing to file used.

Other Threads