Search code examples
c++c++builder

C++ Builder - Difference between Lib and Res


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?


Solution

  • .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.