The MicroStation SDK install provides; ..\bin\rcomp.exe that is used to create .rsc files from .r (and .r.h) files. For a complete working example take a look the IconCmd[Small|Large]Rsc icons in the delivered example myapp; located here: ..\examples\DialogBoxes\myapp.
HTH,
Bob
HTH,
Bob