What it the best way to find out if a resource name exists - other than seeing if
LoadFromResourceName (HInstance, 'FOOBAR')
causes an exception?
You can use the FindResource
function (remember pass the proper resource type)
if FindResource(hInstance, 'FOOBAR', RT_RCDATA) <> 0 then
// do something
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With