R
R
rivero6662020-12-15 20:37:33
visual studio
rivero666, 2020-12-15 20:37:33

How to compile .rc resource file?

I have a simple winapi program that just shows the top classic menu which is described in the resource file like this:

Main MENU {
    POPUP "&Background" {
        MENUITEM "&Blue", 100
        MENUITEM "&Green", 101
        MENUITEM SEPARATOR
        MENUITEM "&Exit", 102
    }
}


But how do I now compile my C source code along with this resource file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Vorobyov, 2020-12-15
@YuriyVorobyov1333

Try to work with Visual Studio, it automatically compiles the resource files that are in the project. Or run rc.exe, it is he who does this and is present both in the Visual Studio distribution and in the Windows SDK. More information here and here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question