关于MFC动态DLL工程中CBitmap:LoadBitmap失效的有关问题,高手速解!

关于MFC动态DLL工程中CBitmap::LoadBitmap失效的问题,高手速解!!!
源码: CBitmap MinBtnBmp;
BITMAPINFO BmpInfo;
MinBtnBmp.LoadBitmap(IDB_BTNMIN);
MinBtnBmp.GetObject(sizeof(BITMAPINFO),&BmpInfo);

同一段代码在DLL中调用时返回1813,但是建立一个MFC下的.exe程序就执行正常,求解!
并且在DLL中换用LoadImage,完全没问题。

------解决方案--------------------
探讨

1813 The specified resource type cannot be found in the image file.

------解决方案--------------------
HBITMAP LoadBitmap(
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpBitmapName // name of bitmap resource
);
看下未封装的函数,可能是第一个参数出问题了,你在DllMain中用全局变量来保存hInstance,再把这个hInstance指定到LoadBitmap中