Вопрос

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
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top