Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- From: "R.Wieser" <address@xxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 02:23:38 +0200
William DePalo [MVP VC++] <willd.no.spam@xxxxxxxx> schreef in berichtnieuws
O7zZBdHYFHA.252@xxxxxxxxxxxxxxxxxxxxxxx
Hello William,
> "R.Wieser" <address@xxxxxxxxxxxxx> wrote in message
> news:eVQqN14XFHA.2540@xxxxxxxxxxxxxxxxxxxxxxx
> > Cause : the "LoadLibraryEx" with the "LOAD_LIBRARY_AS_DATAFILE"
> > option set fails. (after the loading I'm using "EnumResourceNames" to
iterate
> > thru all icon-resources).
>
> Well, how does it fail?
>
> Immediately after the failing LoadLibraryEx() call, call GetLastError()
and
> look up the code in <winerror.h>. If it doesn't ring a bell with you, post
> the code here, and someone should be able to explain it to you.
Sorry, should have thought of that myself. Maybe that's because I allready
suspected what the cause is (but can't do anything about it) ...
The code that GetLastError returns is 000Bh, and is translated by
FormatMessage to "the program has got an illegal format". That could be
connected to the fact that MorIcons.dll is (and others are) of the NE style,
while the accepted DLL's are of the PE style.
Still, it's strange that I can't seem to access, with Windows own functions,
resources in files that Windows offers in a default install ...
Any idea what I can do to access resources in NE-style executables (DLL's,
EXE's) too ?
Regards,
Rudy Wieser
.
- Follow-Ups:
- Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- From: William DePalo [MVP VC++]
- Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- References:
- LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- From: R.Wieser
- Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- From: William DePalo [MVP VC++]
- LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- Prev by Date: Re: Drive's Media Type
- Next by Date: Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- Previous by thread: Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- Next by thread: Re: LoadLibraryEx (as datafile) and MorIcons.dll - extracting icons
- Index(es):
Relevant Pages
|