What is the best way to find out if a resource name exists, except that if
LoadFromResourceName (HInstance, 'FOOBAR')
raises an exception?
You can use the function FindResource(remember to skip the corresponding resource type)
FindResource
if FindResource(hInstance, 'FOOBAR', RT_RCDATA) <> 0 then // do something