I have code like this
IDB_PNG1 PNG "images\\list-back.png"
HRSRC hrsrc = FindResource(module, MAKEINTRESOURCE(IDB_PNG1), TEXT("PNG"));
this works fine,
but I can't get it to work, none of the options below
hrsrc = ::FindResource(module, L"images\\list-back.png", L"PNG");
hrsrc = ::FindResource(module, L"images\\list-back", L"PNG");
hrsrc = ::FindResource(module, L"list-back.png", L"PNG");
hrsrc = ::FindResource(module, L"list-back", L"PNG");
GetlastError returns 0x00000716 The specified resource name cannot be found in the image file.
What is the correct string format / method for searching with string?
Edit : .rc will be generated and will contain .html and .png files. I want to be able to find and download these files without recompiling exe. I need to somehow identify in .html what .png uses, in exe I get this path / id, than FindResource and download. It can be done?
source
share