开发者

Win32 exe not finding resources compiled in a .lib

开发者 https://www.devze.com 2022-12-18 23:20 出处:网络
I have a pretty plain Win32 application that links against a library I wrote that contain开发者_JAVA百科s resources in an .rc file. The problem is that the .exe doesn\'t seem to find those resources.

I have a pretty plain Win32 application that links against a library I wrote that contain开发者_JAVA百科s resources in an .rc file. The problem is that the .exe doesn't seem to find those resources. But if I move the .rc file from the library project to the .exe project resource loading works.

What step am I missing? I have the impression I have to call some kind of general resource setup/loading function because the resources aren't directly in the executable but I don't know what.


VC++ resources in a static library


May be something shifted, but early years it wasn't possible to store resources in .lib But it is absolutely legal to place them to .dll Just change type of your project.

0

精彩评论

暂无评论...
验证码 换一张
取 消