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.
Open and build the solution to register the BufferSnap class in the ESRI Engine Snap Agents component category.
Run the solution.
Start editing.
Zoom in on some point features to a 1:30000 map scale.
Open the Snapping Environment dialog box and turn on the Buffer Snap agent.
Begin adding new features to snap to buffers (1000 map units) around the point features in the specified feature class.
Additional information
The EditingForm Load event sets up the map and snapping environment. The map units are set to meters and the snap tolerance is set to 2000 map units. An IFeatureCache object is used to contain the point features closest to the cursor location. The feature cache is iterated to find the feature from the cache, which when buffered, is nearest to the cursor location. The cursor is then snapped to this location, which is 1000 map units from this feature.