Hi,
I'm getting desperate 'cause SHLoadDIBitmap() doesn't work in my code. When I try loading the image from file like this:

Hbmp=SHLoadDIBitmap(_T("Kozana.bmp"));

or

Hbmp=SHLoadDIBitmap(L"Kozana.bmp");


the function returns 0. The Kozana.bmp file is placed in the project directory and also into the subdirectory where the eVC creates the executable file.

When I tried including the bitmap into resources and loading it with LoadBitmap everything worked perfectly. Unfortunately I can't use the LR_LOADFROMFILE option with LoadBitmap on PPC2002 as I do in Win2000.

I've found many code snippets with SHLoadDIBitmap() on the net and it seems there shouldn't be any problem with this function. Does anybody know where the problem might be?

thankx

Koxin