From Apache OpenOffice Wiki
This page contains tips & tricks to setup MS Developer Studio up for OOo development. Please refer to the general Windows page for tips how to set up the rest of the build environment.
Open Header File
In the MSDEV you open a header file when the cursor stands on a #include with the Edit.GoTo command which is normally bound to the short cut CTRL+G. To open files from OOo you have to add the folders where MSDEV should look into. This is done in Tools->Options->Projects VC++ Directories. There in the upper right corner select "Include files". Here you can add all folders which are important. E.g.
$(SOLAR_STLP) $(SOLARVER)\$(COMMON_OUTDIR)$(PROEXT)\idl$(UPDMINOREXT) $(SOLARVER)\$(OUTPATH)$(PROEXT)\inc$(UPDMINOREXT)\offuh $(SOLARVER)\$(OUTPATH)$(PROEXT)\inc$(UPDMINOREXT)