C++ Builder - Difference between Lib and Res

萝らか妹 提交于 2020-01-15 01:25:18

问题


If my understanding is correct: * Classes compile into obj files. * Libs are collections of obj files.

What are .res files? Are they like libs, or is there a difference?


回答1:


.res files are compiled Windows resources (just like .obj are compiled C++ source code). They contain bitmaps, icons, etc.

In particular, the C++Builder IDE will automatically maintain a .res file containing the application icon and version info that you've set up under Project -> Options -> Application and Project -> Options -> Version Info.




回答2:


.res files are compiled resource scripts (.rc) Can be edited with: http://www.resedit.net/

More on resource scripts: http://en.wikibooks.org/wiki/Windows_Programming/Resource_Scripts

Here is a list of common resources:

Drop-down Menus

Popup Menus

Text Strings

Keyboard Accelerators (keypress combinations, such as [Ctrl]+[C] to copy text)

Icons

Bitmap Images

Dialog Boxes

Version information

Mouse Cursors

How to write a resource script: http://mirrors.zoreil.com/webclub.kcom.ne.jp/ma/colinp/win32/resources/script.html



来源:https://stackoverflow.com/questions/14898393/c-builder-difference-between-lib-and-res

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!