Problem to load a bitmap from C Drive RRS feed

  • General discussion

  • I have created one Win32 project (.dll). This is the main project. This project has taken the reference of another Win32 project (.lib). The static library project is creating a bitmap image from a qruri and saving it in c drive as test.bmp. The dll project is trying to display this Bitmap image in UI. When I am calling the LoadImage function , it always return error code 1814 in getlasterror(), when the last parameter of LoadImage is LR_SHARED. When the last parameter is LR_LOADFROMFILE, it is returning 0. Code snippet are mentioned below. Could you please help me to fix the bug. 

    HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, L"C:\\test.bmp",
    DWORD lastError = GetLastError();

    • Edited by Monalisha Tuesday, March 27, 2018 11:02 AM
    Tuesday, March 27, 2018 10:30 AM