If you are linking the LIB file to a DLL and not an EXE file then you need to change the GetModuleHandle(NULL) reference to GetModuleHandle(“mydllname”) so that it can correctly load the resources from the DLL.