[Mono-bugs] [Bug 51518][Wis] New - mcs does not compile System.Windows.Forms.MessageBox.Show
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 30 Nov 2003 14:21:39 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by fgenolini@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=51518
--- shadow/51518 2003-11-30 14:21:38.000000000 -0500
+++ shadow/51518.tmp.4776 2003-11-30 14:21:38.000000000 -0500
@@ -0,0 +1,86 @@
+Bug#: 51518
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: cygwin under Windows XP SP1
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: fgenolini@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs does not compile System.Windows.Forms.MessageBox.Show
+
+Description of Problem:
+mcs does not compile System.Windows.Forms.MessageBox.Show()
+but mono runs it if compiled with Microsoft csc.exe (with warnings)
+
+Steps to reproduce the problem:
+1. Install cygwin on Windows XP SP1
+2. download and compile latest mcs and mono
+3. type in attached C# source code and compile with mcs, then csc, then
+run with mono
+
+Actual Results:
+mcs fails to compile the attached c# source code:
+
+Book.cs(17) error CS0103: The name `System.Windows.Forms.MessageBox.Show'
+could not be found in `Book'
+Compilation failed: 1 error(s), 0 warnings
+
+mono runs the code if compiled with Microsoft csc.exe, but there are
+warnings:
+
+** (Book.exe:2944): WARNING **: Failed to load
+library .\libwinnt.dll.so.dll (libwinnt.dll.so): The specified module
+could not be found.
+
+** (Book.exe:2944): WARNING **: Failed to load
+library .\libwinnt.dll.so.dll (libwinnt.dll.so): The specified module
+could not be found.
+
+
+Expected Results:
+mcs should compile anything from System.Windows.Forms.MessageBox as the
+status page of Mono says that this class is fully supported
+
+How often does this happen?
+always
+
+Additional Information:
+I am running through the .Net c# examples in
+ms-
+help://MS.MSDNQTR.2003FEB.1033/cscon/html/vclrfcodereadingclassdatafromxml
+filevisualc.htm
+
+which is the MSDN Library, Visual Studio .Net 2003 | Visual Basic and
+Visual C# | Samples | Visual C# Code Example Topics | General Language
+Example Topics | Code: Reading Class Data from an XML File (Visual C#)
+
+Here is the code from the MSDN:
+
+public class Book
+{
+ public string title;
+
+ static void Main()
+ {
+ Book introToVCS = new Book();
+ System.Xml.Serialization.XmlSerializer reader = new
+ System.Xml.Serialization.XmlSerializer(introToVCS.GetType());
+
+ // Read the XML file.
+ System.IO.StreamReader file=
+ new System.IO.StreamReader("c:\\IntroToVCS.xml");
+
+ // Deserialize the content of the file into a Book object.
+ introToVCS = (Book) reader.Deserialize(file);
+ System.Windows.Forms.MessageBox.Show(introToVCS.title,
+ "Book Title");
+ }
+}