What it the best way to find out if a resource name exists - other than seeing if
LoadFromResourceName (HInstance, 'FOOBAR')
causes an exception?
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
© 2022 - 2024 — McMap. All rights reserved.
LoadFromResourceName
wasn't much help either, but it never is. They seemed to have abandoned to idea of hyperlinks to other related useful topics in D2006). – UncrownedFindResource
. It's easy to find dupes once you know the answer! No worries! – Selfcontained