ISHELL_LoadResImage returning NULL | developer.brewmp.com ISHELL_LoadResImage returning NULL | developer.brewmp.com

Developer

ISHELL_LoadResImage returning NULL

Forums:

Hello,
I am trying to load my image by the following function:-

ISHELL_LoadResImage(pMe->a.m_pIShell,MYFIRSTAPPLICATION_RES_FILE,
IDI_IMAGE_5001);

where MYFIRSTAPPLICATION_RES_FILE is defined as my .bar file which is in the same directory and IDI_IMAGE_5001 is defined as the image id no.

But this function is returning NULL where it should return the proper IImage pointer.

Can any one please help me regarding this and show me the right way.

Thanks in advance.

Make sure that you replaced the bar file properly. If replaced only header file then compiler wont display errors but it will return null while loading the image.

Make sure that you replaced the bar file properly. If replaced only header file then compiler wont display errors but it will return null while loading the image.

also check the image format, it doesn't support all types.

also check the image format, it doesn't support all types.

Thank you very much

Thank you very much