ERROR_RESOURCE_TYPE_NOT_FOUND error comes



Hello Everybody,

I am unable to load the bitmap image in CListCtrl control. I made
application as follows:

1. Made DLL which contains resources like dialog, bitmap etc. by
having the multiple .rc files in a project.
2. Made a static lib project which contains classes for resources
which are in DLL. This lib is also having a dependency of DLL.
3. Made a 2 Exes which load that lib. It has a dialog which contains
CListCtrl. This control is populated by lib classes.

I am using VS2003. I am getting surprised result when i run two exes.
one exe shows bitmap in CListCtrl but other does not. I am loading the
bitmap in one of the class of static lib using LoadBitmap but it
returns 0 and when i tried to get error code, it gives 1813.

Can anybody help me on this issue?

Thanks in advance.

Kamal
.



Relevant Pages

  • Old Style Resource "embedding" in VB.NET... please help.
    ... and a provided reference DLL. ... In the SDK are two included samples... ... Public Overridable Sub RegisterPanel(ByVal panelClass As String, ... It's a bitmap with 2 images, so I think the ",0" refers to the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ERROR_RESOURCE_TYPE_NOT_FOUND error comes
    ... I am unable to load the bitmap image in CListCtrl control. ... Made DLL which contains resources like dialog, ... Made a static lib project which contains classes for resources ...
    (microsoft.public.vc.mfc)
  • Re: Graphic performance
    ... Size of the bitmap you're drawing ... Source of the bitmap (DLL or EXE, it would seem, but where is the EXE or ... DLL located? ... need to change some images on the screen and paint few part of the screen. ...
    (microsoft.public.windowsce.embedded)
  • Re: Exchanging bitmaps with DLL?
    ... You also have to be careful in respect of taking ownership of the bitmap. ... If your DLL that created the original bitmap maintains ... can I access the canvas with Delphi functions if I have ...
    (borland.public.delphi.language.objectpascal)
  • Re: CreatePatternBrush always returns null
    ... Private Type BITMAP ... Private Declare Function CreateDIBPatternBrushPt Lib "gdi32" (lpPackedDIB As ... > I'm having trouble getting CreatePatternBrush to work properly. ...
    (microsoft.public.vb.winapi.graphics)