Actually, ExcelPreferences is internal (that is the default visibility for top-level classes). But yes, making it "public class ExcelPreferences" will do the trick, as will compiling both the files into a single assembly (csc /out:myprog.exe first.cs second.cs, or making them a single project in Visual Studio).
Main Topics
Browse All Topics





by: joechinaPosted on 2006-10-30 at 09:16:47ID: 17835239
your class ExcelPreferences is private.
Change it to public