Ambiguity between methods ... Using method group?!

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<P>Why do I get the following message when I am trying to rebuild my solution?! <IMG src="http://forums.microsoft.com/MSDN/images/emoticons/smile_sarcastic.gif </P>
<P>Warning 1 Ambiguity between method Microsoft.Office.Interop.Word._Document.Close(ref object, ref object, ref object) and non-method Microsoft.Office.Interop.Word.DocumentEvents2_Event.Close. Using method group. C:Documents and SettingsCharoiteMy DocumentsVisual Studio 2005ProjectsInteropProjectMicrosoftWordPrinter.cs 27 27 InteropProject
</P>
<P>Warning 2 Ambiguity between method Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref object) and non-method Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit. Using method group. C:Documents and SettingsCharoiteMy DocumentsVisual Studio 2005ProjectsInteropProjectMicrosoftWordPrinter.cs 28 30 InteropProject
</P>
<P>How could I avoid such messages? Thanks for any advance. <IMG src="http://forums.microsoft.com/MSDN/images/emoticons/smile_regular.gif </P>

View the full article
 
Back
Top