Re: hta's and dll's



if this is valid code format :

"res://mydll.dll/myimg.bmp"

then why would it be considered unorthodox ?

It would be unorthodox because you're extracting
binary data from PE files for use in a script. Script
doesn't normally deal in PE resources or binary files.
Resources are usally for internal use in an
executable.

That line of code
may work, but I haven't been able to find it in
MSDN. What I've found is:

"res://resource file[/resource type]/resource id"

That takes an extra paramter, an ID number, and
it all seems to be referring to calls made within
C++ executables. I don't really understand it.
I'd be interested to see a full, working example
if it's really possible to extract a DLL resource
image directly and load it into a page element
like that. It seems far fetched to me.


It also seems that there should be a way to use existing windows dll's and
take advantage of stock images.


I don't think you'd find many images. It's not as
though MS is storing pictures of trees and waterfalls
in DLLs. Generally an executable with images stored
will have things like icons and buttons.

See this for an idea of how much work it is to
get at that stuff:

http://www.jsware.net/jsware/scripts.php3#iconextr

The link is for a script-based icon extractor that
does what you're talking about. But the storage methods
are very complex, and the icon extraction code is very
involved.

If you want more info. about PE resources
see here:
http://rpi.net.au/~ajohnson/resourcehacker

If that link doesn't work then try "res hacker"
or "angus jouhnson".


.