문제

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