Re: How to use "FindResource"
- From: "Scherbina Vladimir" <vladimir.scherbina@xxxxxxxxx>
- Date: Tue, 20 Dec 2005 12:55:25 +0200
In addition - also make sure that your DllMain returnes TRUE
--
Vladimir
"Ram" <koti@xxxxxxxxxxxxxxxxxx> wrote in message
news:eKCo71SBGHA.412@xxxxxxxxxxxxxxxxxxxxxxx
> hi,
>
> i am facing some problem ,while retriving the resource from dll. That dll
> is
> a "esource only dll". Here is the code,what i am using.
>
>
> HMODULE hmod;
> HRSRC hr;
>
> /*here testdll.dll is the dll created for testing purpose and it has
> bitmap1.bmp resource*/
>
>
> hmod=::LoadLibrary("testdll.dll");
> hr=::Findresource(hr,"bitmap1.bmp",RT_BITMAP);
>
> if(hr==NULL)
> MessageBox("This is not working");
> else
> MessageBox("This is Working");
>
>
> This is code i have written ,but when ever i run,i get only "This is not
> working" messagbox. This is means we unable to get the resource from dll.
>
> Can you suggest me, possible solution
>
> regards,
> Ram
>
>
.
- References:
- How to use "FindResource"
- From: Ram
- How to use "FindResource"
- Prev by Date: Re: How to use "FindResource"
- Next by Date: Re: Computer boot time, swap file size and swap file usage
- Previous by thread: Re: How to use "FindResource"
- Next by thread: Re: How to use "FindResource"
- Index(es):
Relevant Pages
|