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 DLL is generated and registered in the ESRI RasterRendererMakers 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 1-bit TIFF image. The image displays as a unique value renderer with red color.
To return to the ArcGIS built-in renderer for the 1-bit TIFF, use the esriregasm.exe utility from the Program Files\Common Files\ArcGIS\bin folder to unregister the DLL.