See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Start Visual Studio, open the solution file, and compile the program. A dynamic-link library (DLL) file is generated and registered in the ESRI RasterCatalogRendererPickers component category.
Run category.exe from the ArcGIS bin directory to confirm that the custom DLL was added to that category.
Start ArcMap and add a raster catalog with multiple bands (> 4) or single band raster datasets to test.
To return to the ArcGIS built-in default renderer for raster catalogs, use the esriregasm.exe utility from the Program Files\Common Files\ArcGIS\bin folder to unregister the DLL.