Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Loading Image from file... Which function to use?
Hi... Tried LoadImage(); but it seems it only for files which are part of resource file (whatever that means).. I'm using the Visual Studio C++ 2005 and would like to load an image from a specified folder???? A code snippet would help.
This is my attempt
HBITMAP radarBmp = (HBITMAP)LoadImage( NULL,
TEXT("c:\Quest Projects\Visual Studio\Resources\Resources\radar_bgrnd.bmp"), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
returns NULL... Error is
The specified resource name cannot be found in the image file. ERROR_RESOURCE_NAME_NOT_FOUND