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 build the project.
Open ArcGlobe in design mode.
Click the Customize menu, and click Customize Mode. The Customize dialog box opens.
Choose the Add-Ins Controls category.
Drag the Sun Position tool from the command items pane onto a toolbar.
Run the application and choose the tool.
Click the mouse to change the sun's position on the globe.